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

/* Animated starry night background (pure CSS, no external gifs) */
body {
    background-color: #b8e2ff;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff6b0, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 130px 80px, #ffd6ec, transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        linear-gradient(180deg, #bfe4ff 0%, #dcf0ff 60%, #ffe9f4 100%);
    background-size: 200px 120px, 200px 120px, 200px 120px, 200px 120px, 200px 120px, 100% 100%;
    background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat;
    animation: twinkle 6s linear infinite;
    color: #363636;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 40px;
}

@keyframes twinkle {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 0 120px, 0 -120px, 0 120px, 0 -120px, 0 120px, 0 0; }
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 90%;
    max-width: 900px;
}

.logo-title {
    font-size: 30px;
    color: #d63384;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 Plum;
    line-height: 1.3;
}

.nav {
    width: 80%;
    max-width: 900px;
    margin-bottom: -5px;
    padding: 2px 10px 0;
    align-content: center;
}

.centered {
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.button {
    box-sizing: border-box;
    width: 15%;
    min-width: 110px;
    margin: 5px 0;
    display: inline-block;
    height: 35px;
    text-decoration: none;
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", monospace;
    border-radius: 5px;
    border: 1px solid MediumVioletRed;
    text-align: center;
    vertical-align: top;
    padding: 5px 0px;
    box-shadow: -1px -2px 1px inset DarkGray, 1px 2px 1px 0px inset White, 1px 2px 0px 1px Plum;
    cursor: pointer;
    transition: transform 0.08s ease;
}

.button:hover {
    transform: translateY(-1px) scale(1.02);
}

.button:active {
    transform: translateY(1px);
    box-shadow: -1px -2px 1px inset White, 1px 2px 1px 0px inset DarkGray, 1px 2px 0px 1px Plum;
}

.button a {
    text-decoration: none;
    font-size: 15px;
    color: white;
    display: block;
    width: 100%;
    height: 100%;
}

#maincontainer {
    margin-top: 35px;
    background-color: #fff0f7;
    background-image:
        radial-gradient(1.5px 1.5px at 25px 25px, #ffd6ec, transparent),
        radial-gradient(1.5px 1.5px at 75px 60px, #cfeaff, transparent);
    background-size: 100px 90px;
    border: 1px solid MediumVioletRed;
    border-radius: 5px;
    padding-bottom: 10px;
    overflow: auto;
    width: 90%;
    max-width: 900px;
    display: block;
    box-shadow: -1px -2px 1px inset LightGray, 3px 4px 1px inset White, 3px 4px 0px 1px Plum;
}

.containerbox {
    box-sizing: border-box;
    margin: 10px;
    background-color: snow;
    border: 1px solid #fd6e8d;
    border-radius: 5px;
    padding: 10px 10px 10px 10px;
    overflow: auto;
    box-shadow: -1px -2px 1px inset LightGray, 3px 4px 1px inset White, 2px 3px 0px 1px Plum;
}

.ropeline {
    font-size: 14px;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
}

.giant-animal {
    font-size: 56px;
    margin: 10px 0 6px;
    animation: bob 2.2s ease-in-out infinite;
}

/* Clips "by the numbers" stats block */
.clip-stats {
    max-width: 560px;
    margin: 10px auto 4px;
    background-color: #fff8fb;
    border: 1px solid #fd6e8d;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: -1px -2px 1px inset LightGray, 3px 4px 1px inset White, 2px 3px 0px 1px Plum;
}

.clip-stats h3 {
    margin-bottom: 8px;
}

.stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 6px 8px;
    border-bottom: 1px dashed #f0b6cd;
    font-size: 14px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    font-weight: 800;
    color: #d63384;
}

.stat-vals {
    font-weight: 700;
}

.stat-total {
    margin-top: 4px;
    background: #fff2f8;
    border: 1px solid #fd6e8d;
    border-radius: 6px;
    box-shadow: 1px 2px 0px 1px Plum;
}

.stat-total .stat-name,
.stat-total .stat-vals {
    font-size: 15px;
}

.stat-growing {
    margin-top: 10px;
    font-weight: 800;
    color: #eb8537;
    animation: hintpulse 1.8s ease-in-out infinite;
}

@media (max-width: 480px) {
    .stat-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.token-animal {
    font-size: 120px;
    animation: bob 2.6s ease-in-out infinite;
}

/* Contract address main CTA section */
.ca-cta {
    background-color: #fff2f8;
    border: 2px solid MediumVioletRed;
    background-image:
        radial-gradient(2px 2px at 18px 18px, #ffd6ec, transparent),
        radial-gradient(2px 2px at 90px 50px, #cfeaff, transparent),
        radial-gradient(1.5px 1.5px at 140px 28px, #fff6b0, transparent);
    background-size: 160px 80px;
}

.ca-cta .ca-box {
    border: 2px dashed MediumVioletRed;
    background-color: #ffffff;
    animation: caglow 1.8s ease-in-out infinite;
}

@keyframes caglow {
    0%, 100% { box-shadow: 2px 3px 0px 1px Plum; }
    50% { box-shadow: 0 0 10px 2px rgba(214, 51, 132, 0.45), 2px 3px 0px 1px Plum; }
}

/* Contract address box */
.ca-box {
    margin: 18px auto 6px;
    max-width: 640px;
    background-color: #fff8fb;
    border: 1px dashed #fd6e8d;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 2px 3px 0px 1px Plum;
}

.ca-label {
    font-weight: 800;
    color: #d63384;
}

#caText {
    font-family: "Comic Sans MS", monospace;
    background: #ffffff;
    border: 1px solid #f0b6cd;
    border-radius: 4px;
    padding: 4px 8px;
    color: #363636;
}

.copy-btn {
    font-family: "Comic Sans MS", cursive;
    background-color: #88fd6e;
    border: 1px solid MediumVioletRed;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    box-shadow: -1px -2px 1px inset DarkGray, 1px 2px 1px 0px inset White, 1px 2px 0px 1px Plum;
}

.copy-btn:active { transform: translateY(1px); }

.copy-note {
    width: 100%;
    color: #2e9e2e;
    font-weight: 700;
    min-height: 18px;
}

/* TikTok gallery: single horizontal, side-to-side scrollable carousel */
.carousel-wrap {
    position: relative;
    margin: 12px auto 4px;
    max-width: 100%;
    background-color: #fff8fb;
    border: 1px solid #fd6e8d;
    border-radius: 8px;
    box-shadow: -1px -2px 1px inset LightGray, 3px 4px 1px inset White, 2px 3px 0px 1px Plum;
}

/* soft fade/gradient edges hinting more content */
.carousel-wrap::before,
.carousel-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    z-index: 2;
}

.carousel-wrap::before {
    left: 0;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(90deg, #fff8fb 0%, rgba(255, 248, 251, 0) 100%);
}

.carousel-wrap::after {
    right: 0;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(270deg, #fff8fb 0%, rgba(255, 248, 251, 0) 100%);
}

.tiktok-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #fd6e8d #ffe3ef;
}

.tiktok-grid .tiktok-embed {
    margin: 0 !important;
    flex: 0 0 auto;
    width: 325px !important;
    min-width: 325px !important;
    max-width: 325px !important;
    scroll-snap-align: center;
    border-radius: 8px;
    overflow: hidden;
}

/* TikTok injects an iframe; keep it uniform + tight */
.tiktok-grid .tiktok-embed iframe {
    width: 100% !important;
    max-width: 325px !important;
    margin: 0 !important;
}

.swipe-hint {
    margin: 4px 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: #d63384;
    letter-spacing: 1px;
    animation: hintpulse 1.8s ease-in-out infinite;
}

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

/* Retro pastel styled scrollbar (WebKit/Blink) */
.tiktok-grid::-webkit-scrollbar {
    height: 12px;
}

.tiktok-grid::-webkit-scrollbar-track {
    background: #ffe3ef;
    border: 1px solid #fd6e8d;
    border-radius: 10px;
    box-shadow: inset 1px 2px 1px White;
}

.tiktok-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9ac0 0%, #fd6e8d 100%);
    border: 1px solid MediumVioletRed;
    border-radius: 10px;
    box-shadow: -1px -1px 1px inset DarkGray, 1px 1px 1px inset White;
}

.tiktok-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffb0cf 0%, #ff5a80 100%);
}

.subcontainer {
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.subboxone {
    width: calc(66% - 5px);
    background-color: #fef8e7;
    border: 1px solid #fecd2f;
    flex: 2 1 0;
    box-sizing: border-box;
    min-width: 200px;
    display: inline-block;
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    text-align: left;
    overflow: auto;
    box-shadow: -1px -2px 1px inset LightGray, 3px 4px 1px inset White, 2px 3px 0px 1px Plum;
}

.subboxtwo {
    width: calc(33% - 5px);
    background-color: #f0fafe;
    border: 1px solid #87d7fd;
    flex: 1 1 0;
    box-sizing: border-box;
    min-width: 200px;
    display: inline-block;
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    text-align: left;
    overflow: auto;
    box-shadow: -1px -2px 1px inset LightGray, 3px 4px 1px inset White, 2px 3px 0px 1px Plum;
}

.step {
    margin-top: 15px;
    margin-bottom: 5px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 auto;
    margin: 0 4px;
    background: #fd6e8d;
    color: #fff;
    border-radius: 50%;
    line-height: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 1px 1px 0 Plum;
}

.quote {
    font-style: italic;
    margin-top: 25px;
    font-size: 16px;
    color: #eb8537;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.rainbow-text {
    color: #000;
    background: linear-gradient(90deg, #AA00F5 10%, #2D00A8 18%, #248EFF 32%, #00C700 48%, #FAD900 68%, #FF8838 90%, #FF0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #0000;
    background-clip: text;
}

@media (max-width: 874px) {
    .button {
        flex: 25%;
    }
    .logo-title {
        font-size: 22px;
    }
}

@media (max-width: 546px) {
    .logo-title {
        font-size: 18px;
    }
    .token-animal {
        font-size: 90px;
    }
}
