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

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2D3436;
    --light: #F5F5F5;
    --text: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(90deg, #1a1a1a, #2d3436, #1a1a1a, #2d3436);
    background-size: 300% 100%;
    animation: gradientShift 8s ease infinite;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.timer-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    animation: pulse 2s ease-in-out infinite;
}

.countdown-timer {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4444;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 8px;
    border: 2px solid #ff4444;
    animation: timerGlow 1.5s ease-in-out infinite;
    letter-spacing: 2px;
}

@keyframes timerGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
        border-color: #ff4444;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
        border-color: #ff6666;
    }
}

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

.countdown-timer.urgent {
    animation: urgentPulse 0.5s ease-in-out infinite;
    color: #ff0000;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        color: #ff0000;
    }
    50% {
        transform: scale(1.05);
        color: #ff4444;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

.logo span {
    background: linear-gradient(90deg, #FFE66D, #FF6B6B, #4ECDC4, #FFE66D);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: twitch 2s ease-in-out infinite, colorShift 3s linear infinite;
    text-shadow: 0 0 20px rgba(255, 230, 109, 0.5);
}

@keyframes twitch {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
}

@keyframes colorShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent);
}

.hero {
    background: linear-gradient(-45deg, #FF6B6B, #4ECDC4, #FFE66D, #FF6B6B);
    background-size: 400% 400%;
    animation: gradientFlow 10s ease infinite;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-logo {
    position: absolute;
    width: 150px;
    height: 150px;
    animation: floatAround 15s infinite linear;
    z-index: 1;
    opacity: 0.3;
}

.floating-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 8s linear infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.floating-pill {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: floatAroundPill 12s infinite linear;
    z-index: 1;
    opacity: 0.4;
}

.floating-pill img {
    width: 100%;
    height: 100%;
    animation: spinReverse 6s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.6));
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) scale(1);
        left: 10%;
        top: 10%;
    }
    25% {
        transform: translate(200px, 100px) scale(1.2);
        left: 60%;
        top: 20%;
    }
    50% {
        transform: translate(-100px, 50px) scale(0.8);
        left: 70%;
        top: 60%;
    }
    75% {
        transform: translate(150px, -50px) scale(1.1);
        left: 20%;
        top: 70%;
    }
    100% {
        transform: translate(0, 0) scale(1);
        left: 10%;
        top: 10%;
    }
}

@keyframes floatAroundPill {
    0% {
        transform: translate(0, 0) scale(0.8);
        right: 15%;
        top: 20%;
    }
    25% {
        transform: translate(-150px, 80px) scale(1);
        right: 50%;
        top: 10%;
    }
    50% {
        transform: translate(100px, -30px) scale(0.9);
        right: 10%;
        top: 50%;
    }
    75% {
        transform: translate(-80px, 100px) scale(1.1);
        right: 65%;
        top: 65%;
    }
    100% {
        transform: translate(0, 0) scale(0.8);
        right: 15%;
        top: 20%;
    }
}

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

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-title span {
    display: inline-block;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.bounce-1 {
    animation: bounce 2s ease-in-out infinite;
}

.bounce-2 {
    animation: bounce 2s ease-in-out 0.2s infinite;
}

.bounce-3 {
    animation: bounce 2s ease-in-out 0.4s infinite;
}

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

.hero-subtitle {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle span {
    display: inline-block;
    margin: 0 4px;
}

.word-1 { animation: wordPop 3s ease-in-out infinite; }
.word-2 { animation: wordPop 3s ease-in-out 0.2s infinite; }
.word-3 { animation: wordPop 3s ease-in-out 0.4s infinite; }
.word-4 { animation: wordPop 3s ease-in-out 0.6s infinite; }
.word-5 { animation: wordPop 3s ease-in-out 0.8s infinite; }

@keyframes wordPop {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        color: white;
    }
    25% {
        transform: scale(1.2) rotate(-5deg);
        color: var(--accent);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        color: white;
    }
}

.emoji {
    animation: emojiFloat 2s ease-in-out infinite;
    font-size: 2rem;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(360deg); }
}

.section {
    padding: 80px 0;
}

.alt-bg {
    background: white;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.content-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.alt-bg .content-box {
    background: var(--light);
}

.sticky-notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.sticky-note {
    position: relative;
    padding: 2rem 1.5rem;
    min-height: 200px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: stickyFloat 4s ease-in-out infinite;
}

.sticky-note:nth-child(1) {
    transform: rotate(-2deg);
    animation-delay: 0s;
}

.sticky-note:nth-child(2) {
    transform: rotate(1deg);
    animation-delay: 0.5s;
}

.sticky-note:nth-child(3) {
    transform: rotate(-1deg);
    animation-delay: 1s;
}

.sticky-note:nth-child(4) {
    transform: rotate(2deg);
    animation-delay: 1.5s;
}

@keyframes stickyFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-5px) rotate(var(--rotation, 0deg)); }
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.sticky-note.yellow {
    background: linear-gradient(135deg, #FFEB3B 0%, #FFD600 100%);
    --rotation: -2deg;
}

.sticky-note.pink {
    background: linear-gradient(135deg, #FF6B9D 0%, #FE6090 100%);
    --rotation: 1deg;
}

.sticky-note.blue {
    background: linear-gradient(135deg, #66D9EF 0%, #4FC3DC 100%);
    --rotation: -1deg;
}

.sticky-note.green {
    background: linear-gradient(135deg, #95E1D3 0%, #5CDB95 100%);
    --rotation: 2deg;
}

.pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ff4444, #cc0000);
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
}

.sticky-note h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.sticky-note p {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

.mechanics-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.7rem 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.info-card li:before {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url('images/pill.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pillRotate 3s linear infinite;
}

@keyframes pillRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wallet-submission {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
    border-radius: 15px;
    margin-bottom: 2rem;
}

.wallet-submission h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.wallet-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.wallet-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
    background: white;
}

.wallet-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255,107,107,0.2);
}

.participate-btn {
    padding: 15px 40px !important;
    font-size: 1.1rem !important;
}

.requirements-note {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

.pnl-result {
    margin: 3rem 0;
    transition: all 0.5s ease;
}

.pnl-result.hidden {
    display: none;
}

.pnl-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 3px solid transparent;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: var(--secondary); }
}

.pnl-display {
    margin: 2rem 0;
    font-size: 1.3rem;
}

.pnl-label {
    color: var(--dark);
    font-weight: 600;
}

.pnl-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-top: 0.5rem;
    animation: pulseValue 2s ease-in-out infinite;
}

@keyframes pulseValue {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pnl-value.positive {
    color: #27ae60;
}

.pnl-status {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

.how-to-participate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #FF5252;
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #45B7AA;
    transform: scale(1.05);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background: #FFD93D;
    transform: scale(1.05);
}

.leaderboard {
    overflow-x: auto;
}

.board-header,
.board-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px 100px;
    padding: 1rem;
    align-items: center;
}

.board-header {
    background: var(--dark);
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
}

.board-item {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s;
}

.board-item:hover {
    background: var(--light);
}

.rank {
    font-weight: bold;
    color: var(--primary);
}

.loss {
    color: #e74c3c;
    font-weight: 600;
}

.votes {
    color: var(--secondary);
    font-weight: 600;
}

.token-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.token-stat h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.big-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.token-simple {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.token-logo-large {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.token-logo-large:hover {
    transform: scale(1.05);
}

.btn-large {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    min-width: 250px;
}

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .board-header,
    .board-item {
        font-size: 0.85rem;
        grid-template-columns: 60px 1fr 100px 80px;
    }
}

/* Custom Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    border: 3px solid var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-content .btn {
    margin-top: 1rem;
}