:root {
    --color-base-deep: #511b11;
    --color-bg-light: #ffeeeb;
    --color-accent-danger: #ef372c;
    --color-accent-surreal: #5860c3;
    --color-highlight-fun: #ffe269;

    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-base-deep);
    line-height: 1.6;
    cursor: url('/white_glove_cursor.png'), auto;
}

/* Common Section Title */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-base-deep);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 3px 3px 0 var(--color-highlight-fun), 
                 -3px -3px 0 var(--color-accent-danger);
}

/* Section Separator */
.section-separator {
    width: 100%;
    height: 1px; /* single line */
    background-color: rgba(88, 96, 195, 0.2); /* subtle #5860c3 */
    margin: 3rem 0; /* spacing above & below, slightly more than 2rem to match existing section padding */
}

/* Win95 Divider */
.win95-divider {
    width: 100%;
    height: 10px;
    background-color: #c0c0c0; /* Light gray base */
    border-top: 2px solid #ffffff; /* White highlight */
    border-bottom: 2px solid #808080; /* Darker shadow */
    box-sizing: border-box;
    margin: 4rem 0; /* Spacing before and after */
}

/* Loading Spinner */
.loading-spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-accent-danger);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Generic Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    background-color: var(--color-base-deep);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent-danger);
    color: var(--color-bg-light);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: url('/white_glove_cursor.png'), auto;
    z-index: 1010;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

.modal-close-btn:focus-visible {
    outline: 3px dashed var(--color-highlight-fun);
    outline-offset: 4px;
}

.modal-video-title,
.modal-tiktok-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-highlight-fun);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        padding: 1rem;
    }
    .modal-close-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
    .modal-video-title,
    .modal-tiktok-title {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

/* Global Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    body {
        scroll-behavior: auto; /* Disable smooth scroll */
    }
    .btn:hover {
        transform: none !important; /* Disable button scale/translate */
        box-shadow: none !important; /* Disable button glow */
    }
    .carousel-nav-btn:hover {
        transform: translateY(-50%) scale(1); /* Disable bounce */
    }
    .pagination-dot:hover {
        transform: scale(1);
    }
}

/* Dexscreener Embed (Responsive & Compact) */
#dexscreener-embed {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto; /* Margin-top: 2rem from How to Buy steps, centered */
  padding-bottom: 65%; /* proportional height */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

#dexscreener-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

@media (max-width: 768px) {
  #dexscreener-embed {
    padding-bottom: 80%; /* taller on mobile for readability */
  }
}

/* Coin Disclaimer / Fun Notice */
.coin-disclaimer {
    color: var(--color-base-deep); /* #511b11 */
    font-family: var(--font-body); /* Clean sans-serif */
    font-weight: 500; /* Medium weight */
    font-size: 0.9rem; /* Desktop size */
    text-align: center;
    margin-top: 1.5rem; /* 1.5–2rem from Dexscreener embed */
    margin-left: auto;
    margin-right: auto;
    max-width: 800px; /* Optional: Constrain width for readability */
    padding: 0 1rem; /* Add some padding on smaller screens */
    margin-bottom: 2rem; /* Margin-bottom: 2rem above footer */
}

@media (max-width: 768px) {
    .coin-disclaimer {
        font-size: 0.85rem; /* Slightly smaller on mobile */
        margin-top: 1rem; /* Adjust margin for mobile */
    }
    /* Hide carousel navigation buttons on mobile as scroll snap and touch gesture is primary */
    .carousel-nav-btn {
        display: none;
    }
}