:root {
    --primary-color: #a0d8ef;
    --secondary-color: #e0f7fa;
    --accent-color: #00bcd4;
    --text-color: #2c3e50;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka One', cursive;
    background: #bce8f1;
    /* Light icy blue background */
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.snowflake {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.main-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    min-height: 100vh;
}

.header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

.chain-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 15px var(--shadow);
    border: 3px solid white;
}

.solana-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    gap: 3rem;
}

.title {
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 0 #2c3e50, -1px -1px 0 #2c3e50, 1px -1px 0 #2c3e50, -1px 1px 0 #2c3e50, 1px 1px 0 #2c3e50;
    line-height: 1.2;
    z-index: 30;
    position: relative;
}

.highlight {
    color: #ffeb3b;
    font-size: 4.5rem;
    display: block;
    transform: rotate(-2deg);
    margin-top: 10px;
}

.coin-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.coin-wrapper {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
    animation: float 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.snow-coin {
    width: 105%;
    height: 105%;
    object-fit: cover;
    clip-path: circle(46% at 50% 50%);
    border-radius: 50%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.ca-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 4px solid var(--text-color);
    box-shadow: 8px 8px 0 var(--text-color);
    position: relative;
    max-width: 90vw;
}

.ca-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ca-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed #ccc;
    font-family: monospace;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.ca-box:hover {
    background: #e0e0e0;
    border-color: var(--accent-color);
}

#ca-text {
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.copy-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.copied-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.copied-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.cartoon-btn {
    text-decoration: none;
    background: var(--text-color);
    color: white;
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 30px;
    position: relative;
    border: 4px solid white;
    box-shadow: 0 10px 0 #1a252f, 0 15px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.cartoon-btn:active {
    transform: translateY(10px);
    box-shadow: 0 0 0 #1a252f, 0 5px 10px rgba(0, 0, 0, 0.4);
}

.buy-btn {
    background: #ff4757;
}

.x-btn {
    background: #000000;
}

.btn-snow {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: white;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.8;
}

/* Snowflake buildup on buttons */
.cartoon-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10%;
    width: 30%;
    height: 15px;
    background: white;
    border-radius: 50px;
    z-index: 2;
}

.cartoon-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 15%;
    width: 20%;
    height: 12px;
    background: white;
    border-radius: 50px;
    z-index: 2;
}

.footer-landscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    overflow: hidden;
}

.landscape-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .highlight {
        font-size: 3rem;
    }

    .coin-container {
        width: 250px;
        height: 250px;
    }

    .ca-box {
        font-size: 0.9rem;
    }
}