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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    line-height: 1.6;
    height: 100vh;
    padding: 0;
}

html {
    height: auto;
}

/* Social Buttons */
.social-buttons {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.8);
}

.social-btn svg {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-btn:hover svg {
    opacity: 1;
}

/* Fees Counter */
.fees-counter {
    position: fixed;
    top: calc(50% + 20px);
    left: 30px;
    transform: translateY(-50%);
    z-index: 100;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    min-width: 220px;
}

.fees-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.fees-amount {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    letter-spacing: 1px;
    animation: fees-glow 3s ease-in-out infinite;
}

.fees-last {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ccc;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    opacity: 0.8;
}

@keyframes fees-glow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
    50% { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

/* Twinkling Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0 !important;
    overflow: hidden;
    background: transparent;
    display: block !important;
    visibility: visible !important;
}

.star {
    position: absolute !important;
    width: 4px !important;
    height: 4px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9) !important;
    animation: twinkle 4s infinite ease-in-out !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.9 !important;
    display: block !important;
    visibility: visible !important;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(255, 255, 255, 1);
    }
}

/* Ensure stars container is visible */
#stars {
    display: block !important;
}

/* Remove padding/margins from any parent containers */
main, section, .container, .hero, .content {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Tight stacking layout */
.void-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
}

/* Kill default margins on headings/paragraphs */
.void-stack h1,
.void-stack h2,
.void-stack .status-text,
.void-stack .desc {
    margin: 0 !important;
}

/* Add only tiny spacing for readability */
.status-text,
.winners-section {
    margin-top: -10px !important;
}

.desc {
    margin-top: -20px !important;
    font-size: clamp(16px, 2vw, 22px); 
    text-align: center; 
    max-width: 70ch; 
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* Remove ALL margins around the void image */
.void-wrap {
    position: relative;
    z-index: 2;
    width: clamp(300px, 45vw, 650px);
    height: clamp(300px, 45vw, 650px);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block;
    line-height: 0;
}

.void-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block;
    line-height: 0;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

/* Move ALL glow, shadow, pulse effects here - absolute positioning */
.void-glow {
    position: absolute;
    inset: 0;
    border: none;
    pointer-events: none;
    border-radius: 50%;
}

/* Pulse animation applied to wrapper for glow effect */
.void-wrap.void-pulse .void-img {
    animation: void-glow-pulse 1s ease-out;
}

@keyframes void-glow-pulse {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.8));
    }
    100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
}

/* Countdown Timer Overlay */
.countdown-overlay {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    z-index: 10;
    pointer-events: none;
    animation: countdown-pulse 2s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
        opacity: 0.9;
    }
    50% { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
        opacity: 1;
    }
}

/* Status Text */
.status-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: #fff;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-top: -80px;
}

/* Wallet Animation Container */
.wallet-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* Animated Wallet Pills */
.animated-wallet {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 12px 28px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.6);
    z-index: 20;
}

/* Wallet shoot-out animation */
@keyframes wallet-shoot-out {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    20% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Wallet fade-out animation */
@keyframes wallet-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Glowing trail effect */
.wallet-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 10;
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Winners Section - Hidden during animation */
.winners-section {
    display: none;
}

@keyframes void-pulse {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.abyss-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.abyss-text {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    line-height: 1.8;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.abyss-text p {
    margin-bottom: 5px;
}

.follow-x-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: -10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.follow-x-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

/* How It Works Button - Left Side */
.how-it-works-btn-left {
    position: fixed;
    top: calc(50% - 140px);
    left: 30px;
    z-index: 100;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    min-width: 200px;
}

.how-it-works-btn-left:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.modal-close:hover {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
    transform: scale(1.1);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 2px;
}

.modal-body {
    color: #fff;
    line-height: 1.8;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Mobile responsiveness for modal */
@media (max-width: 640px) {
    .modal-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
}

/* Hall of the Returned Sidebar */
.hall-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  
  .void-image {
    width: 320px;
    height: 320px;
  }
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hall-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    padding-bottom: 20px;
}

.hall-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.hall-empty {
    font-size: 1rem;
    color: #aaa;
    font-style: italic;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    padding: 20px;
    text-align: center;
}

.hall-round {
    width: 280px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.hall-round-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-align: center;
}

.hall-winners {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.hall-winner {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    width: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fees-counter {
        display: none;
    }
    
    .void-stack {
        gap: 12px;
        padding: 10px;
    }
    
    .hall-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
  #core { top: 34%; }
  .void-wrap { width: clamp(220px, 70vw, 520px); height: clamp(220px, 70vw, 520px); }
}

@media (max-width: 480px) {
    .void-stack {
        gap: 10px;
        padding: 5px;
    }
    
    .social-buttons {
        top: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .social-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}