* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #b91c1c;
    --fg: #fde047;
    --muted: rgba(253, 224, 71, 0.5);
    --border: rgba(253, 224, 71, 0.2);
    --glow: rgba(253, 224, 71, 0.8);
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Orbitron', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ─── Tech Grid Background ─── */
.tech-grid {
    position: fixed;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(253, 224, 71, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(253, 224, 71, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.tech-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
}

/* ─── Main Layout ─── */
main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 24px;
    gap: 32px;
}

/* ─── Hourglass ─── */
.hourglass-wrapper {
    margin: 8px 0;
}

.hourglass {
    width: 160px;
    height: 200px;
    filter: drop-shadow(0 0 40px rgba(253, 224, 71, 0.6)) drop-shadow(0 0 80px rgba(253, 224, 71, 0.2));
    animation: float 4s ease-in-out infinite;
}

.sand-stream {
    animation: stream 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes stream {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* ─── Banner ─── */
.banner-img {
    width: 80%;
    max-width: 700px;
    border-radius: 16px;
    border: 3px solid rgba(253, 224, 71, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(253, 224, 71, 0.15);
}

/* ─── Title ─── */
.title {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1;
    text-shadow:
        0 0 20px rgba(253, 224, 71, 0.5),
        0 0 60px rgba(253, 224, 71, 0.2),
        0 0 100px rgba(253, 224, 71, 0.1);
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 600;
    color: var(--fg);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-top: -16px;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

/* ─── Challenge Text ─── */
.challenge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 600;
    color: var(--fg);
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
    margin-top: -12px;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

/* ─── Status ─── */
.status {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    min-height: 20px;
}

.status.ended {
    color: var(--fg);
    text-shadow: 0 0 20px rgba(253, 224, 71, 0.6);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Countdown ─── */
.countdown {
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-value {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
    text-shadow:
        0 0 20px rgba(253, 224, 71, 0.5),
        0 0 60px rgba(253, 224, 71, 0.2);
}

.time-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.time-separator {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    opacity: 0.5;
    text-shadow:
        0 0 20px rgba(253, 224, 71, 0.5),
        0 0 60px rgba(253, 224, 71, 0.2);
    align-self: flex-start;
}

/* ─── Market Cap ─── */
.mcap-section {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mcap-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcap-bar-bg {
    width: 100%;
    height: 40px;
    background: rgba(253, 224, 71, 0.08);
    border: 2px solid rgba(253, 224, 71, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.mcap-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fde047, #facc15, #eab308);
    border-radius: 10px;
    transition: width 1.5s ease;
    box-shadow:
        0 0 20px rgba(253, 224, 71, 0.5),
        0 0 40px rgba(253, 224, 71, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
}

.mcap-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 10px 10px 0 0;
}

.mcap-bar-pct {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 800;
    color: #7c2d12;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

.mcap-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: 0.1em;
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.2);
}

.mcap-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.mcap-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mcap-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.2);
}

.mcap-stat-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--fg);
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.4);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

/* ─── CA Box ─── */
.ca-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    color: var(--fg);
    position: relative;
    max-width: 100%;
}

.ca-box:hover {
    border-color: rgba(253, 224, 71, 0.5);
}

.ca-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.ca-address {
    font-size: 14px;
    letter-spacing: 0.05em;
    word-break: break-all;
}

.copy-icon {
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.ca-box:hover .copy-icon {
    color: var(--fg);
}

.copied-toast {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ca-box.copied .copied-toast {
    opacity: 1;
}

/* ─── Socials ─── */
.socials {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-button:hover {
    color: var(--fg);
    border-color: rgba(253, 224, 71, 0.5);
    box-shadow: 0 0 20px rgba(253, 224, 71, 0.15);
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
    main {
        gap: 24px;
        padding: 32px 16px;
    }

    .countdown {
        gap: 8px;
    }

    .ca-box {
        padding: 12px 14px;
        gap: 8px;
    }

    .ca-address {
        font-size: 11px;
    }

    .ca-label {
        font-size: 12px;
    }

    .hourglass {
        width: 120px;
        height: 150px;
    }

    .mcap-stats {
        gap: 16px;
    }

    .mcap-stat-value {
        font-size: 15px;
    }

    .mcap-bar-bg {
        height: 32px;
    }

    .mcap-section {
        max-width: 100%;
    }
}
