/* ============================================
   ШРИФТЫ
   ============================================ */

@font-face {
    font-family: 'FontOfKindness';
    src: url('Шрифты/FontOfKindness-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FontOfKindness';
    src: url('Шрифты/FontOfKindness-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* ============================================
   НАСТРОЙКИ СТИЛЯ
   ============================================ */

:root {
    --bg-color: #161824;
    --text-color: #ffffff;
    --accent-color: #78d99b;
    --stroke-color: #ffffff;
    --stroke-thick: 6px;
    --stroke-medium: 4px;
    --stroke-thin: 3px;
}

/* ============================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================ */

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

body {
    font-family: 'FontOfKindness', 'Courier New', monospace, cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: var(--stroke-thick) solid var(--stroke-color);
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.logo-scribble {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    transform: rotate(-1deg);
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 8px 16px;
    border: var(--stroke-medium) solid var(--accent-color);
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    background: var(--bg-color);
    transform: rotate(1deg);
    transition: all 0.1s ease;
    position: relative;
    display: inline-block;
}

.nav-btn:hover {
    animation: shake 0.3s ease infinite;
    border-width: 8px;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(-1deg) scale(1.05);
}

.nav-btn:nth-child(2) {
    transform: rotate(-1.5deg);
}

.nav-btn:nth-child(3) {
    transform: rotate(0.5deg);
}

.nav-btn:nth-child(4) {
    transform: rotate(-0.8deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-image-container {
    margin-bottom: 30px;
    transform: rotate(-1.5deg);
    position: relative;
}

.hero-main-image {
    width: 600px;
    height: 600px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(120, 217, 155, 0.3));
}

.hero-logo-box {
    border: var(--stroke-thick) solid var(--stroke-color);
    padding: 40px 60px;
    display: inline-block;
    margin-bottom: 30px;
    transform: rotate(-1.5deg);
    position: relative;
    background: var(--bg-color);
}

.hero-logo {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 1;
}

.hero-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    transform: rotate(1deg);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-scribbles {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100px;
    margin-top: 20px;
}

.scribble-arrow {
    width: 200px;
    height: 50px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    animation: drawStroke 2s ease-out;
}

.stamp {
    position: absolute;
    border: var(--stroke-medium) solid var(--accent-color);
    padding: 8px 16px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    transform: rotate(15deg);
    background: var(--bg-color);
    color: var(--accent-color);
    animation: float 4s ease-in-out infinite;
}

.stamp-og {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.stamp-vibes {
    top: 30px;
    right: 25%;
    transform: rotate(-12deg);
    animation-delay: 1s;
}

/* ============================================
   BLOCKS CONTAINER
   ============================================ */

.blocks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.block {
    border: var(--stroke-thick) solid var(--stroke-color);
    padding: 25px;
    background: var(--bg-color);
    position: relative;
    min-height: 200px;
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

.block-title {
    color: var(--accent-color);
}

.block-title {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    transform: rotate(-0.5deg);
}

.block-content {
    font-size: 1rem;
    line-height: 1.8;
}

.block-content p {
    margin-bottom: 10px;
}

.block-about {
    transform: rotate(-1.2deg);
    animation-delay: 0s;
}

.block-rules {
    transform: rotate(1.5deg);
    animation-delay: 0.5s;
}

.block-links {
    transform: rotate(-0.8deg);
    animation-delay: 1s;
}

.block-status {
    transform: rotate(1deg);
    animation-delay: 1.5s;
}

.block-meme {
    transform: rotate(-1.3deg);
    animation-delay: 2s;
}

.block-chart {
    grid-column: 1 / -1;
    transform: rotate(0.5deg);
    animation-delay: 2.5s;
}

.block-scribble {
    width: 100%;
    height: 30px;
    margin-top: 15px;
    opacity: 0.8;
}

.chart-arrow {
    width: 150px;
    height: 30px;
    margin-bottom: 15px;
    transform: rotate(-1deg);
}

.chart-container {
    width: 100%;
    height: 500px;
    border: var(--stroke-medium) solid var(--stroke-color);
    position: relative;
    overflow: hidden;
}

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

.cross-out {
    text-decoration: line-through;
    text-decoration-thickness: 4px;
    opacity: 0.6;
    margin-top: 15px;
    font-size: 0.9rem;
    transform: rotate(2deg);
}

.link-item {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px;
    border-bottom: var(--stroke-thin) solid var(--accent-color);
    transition: all 0.1s ease;
}

.link-item:hover {
    border-bottom-width: 6px;
    color: var(--accent-color);
    transform: translateX(5px);
}

.status-indicator {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    font-style: italic;
    opacity: 0.8;
}

/* ============================================
   CONTRACT SECTION
   ============================================ */

.contract-section {
    padding: 40px 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contract-box {
    border: var(--stroke-thick) solid var(--stroke-color);
    padding: 30px;
    background: var(--bg-color);
    transform: rotate(-0.5deg);
    position: relative;
}

.contract-label {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    word-break: break-all;
    letter-spacing: 1px;
}

.copy-btn {
    padding: 12px 30px;
    border: var(--stroke-medium) solid var(--accent-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transform: rotate(1.5deg);
    transition: all 0.1s ease;
}

.copy-btn:hover {
    animation: shake 0.3s ease infinite;
    border-width: 8px;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(-1deg) scale(1.1);
}

.copy-btn:active {
    transform: rotate(0deg) scale(0.95);
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    padding: 20px 40px;
    border: var(--stroke-thick) solid var(--accent-color);
    background: var(--bg-color);
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
    animation: stampAppear 0.3s ease;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 40px 30px;
    text-align: center;
    margin-top: 60px;
    border-top: var(--stroke-medium) solid var(--stroke-color);
    position: relative;
    z-index: 2;
    background: var(--bg-color);
}

.footer-text {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 15px;
    transform: rotate(-0.3deg);
}

.footer-scribble {
    width: 100%;
    max-width: 400px;
    height: 20px;
    margin: 0 auto;
    opacity: 0.5;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-2px) translateX(1px);
    }
    50% {
        transform: translateY(1px) translateX(-1px);
    }
    75% {
        transform: translateY(-1px) translateX(2px);
    }
}

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

@keyframes drawStroke {
    0% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

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

@keyframes stampAppear {
    0% {
        transform: translate(-50%, -50%) rotate(15deg) scale(0.5);
    }
    50% {
        transform: translate(-50%, -50%) rotate(20deg) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) rotate(15deg) scale(1);
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* ============================================
   FLYING IMAGES
   ============================================ */

.flying-images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flying-image {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.3;
    animation: flyAround 20s linear infinite;
    filter: drop-shadow(0 0 5px rgba(120, 217, 155, 0.5));
}

@keyframes flyAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(calc(100vw - 80px), calc(25vh)) rotate(90deg);
    }
    50% {
        transform: translate(calc(100vw - 80px), calc(75vh)) rotate(180deg);
    }
    75% {
        transform: translate(0, calc(75vh)) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes flyAroundReverse {
    0% {
        transform: translate(calc(100vw - 80px), 0) rotate(360deg);
    }
    25% {
        transform: translate(0, calc(25vh)) rotate(270deg);
    }
    50% {
        transform: translate(0, calc(75vh)) rotate(180deg);
    }
    75% {
        transform: translate(calc(100vw - 80px), calc(75vh)) rotate(90deg);
    }
    100% {
        transform: translate(calc(100vw - 80px), 0) rotate(0deg);
    }
}

.flying-image.reverse {
    animation: flyAroundReverse 25s linear infinite;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .nav-buttons {
        justify-content: center;
    }

    .hero-main-image {
        width: 100%;
        max-width: 400px;
    }

    .hero-logo {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-logo-box {
        padding: 25px 35px;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .blocks-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
    }

    .block-chart {
        grid-column: 1;
    }

    .chart-container {
        height: 400px;
    }

    .contract-address {
        font-size: 0.9rem;
    }

    .stamp {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .flying-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-main-image {
        max-width: 300px;
    }

    .hero-logo {
        font-size: 2rem;
    }

    .nav-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .block-title {
        font-size: 1.4rem;
    }

    .chart-container {
        height: 300px;
    }

    .flying-image {
        width: 50px;
        height: 50px;
    }
}

