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

.vt323-regular {
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
}

.press-start-2p-regular {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    background: url('public/image.png') center center fixed;
    background-size: cover;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Background Overlay */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    overflow: hidden;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #00ff00;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    font-family: "Press Start 2P", system-ui;
    font-size: 1.5rem;
    font-weight: 400;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    text-shadow: 0 0 10px #00ffff;
    transform: translateY(-2px);
    color: #00ffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-family: "Press Start 2P", system-ui;
    font-size: 3rem;
    font-weight: 400;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ffff; }
    to { text-shadow: 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

.subtitle {
    font-size: 1.2rem;
    color: #00ff00;
    opacity: 0.8;
}

/* Progress Container */
.progress-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(10px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-header h3 {
    font-family: "Press Start 2P", system-ui;
    color: #ffff00;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 0 10px #ffff00;
}

.progress-stats {
    color: #00ffff;
    font-size: 1.4rem;
    font-weight: 700;
}

.target-amount {
    color: #00ff00;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 1rem;
}

.progress-sphero {
    position: absolute;
    top: -15px;
    left: 0%;
    width: 60px;
    height: 60px;
    background: url('public/sphero.png') center center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: left 0.8s ease-in-out, transform 0.8s ease-in-out;
    z-index: 10;
    filter: drop-shadow(0 0 10px #00ff00);
    transform-origin: center;
}

@keyframes rollComplete {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #00ff00, #ffff00);
    border-radius: 13px;
    transition: width 0.8s ease-in-out;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-percentage {
    text-align: center;
    color: #ffff00;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px #ffff00;
}

/* Checker Container */
.checker-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(10px);
}

.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #00ff00;
}

.input-section input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 8px;
    color: #00ff00;
    font-family: "VT323", monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.input-section input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.input-section input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.check-btn {
    background: linear-gradient(45deg, #00ffff, #00ff00);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: "VT323", monospace;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
    margin-top: 0.5rem;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    background: linear-gradient(45deg, #ffff00, #00ffff);
}

.check-btn:active {
    transform: translateY(0);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
}

.result-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.result-card h3 {
    font-family: "Press Start 2P", system-ui;
    color: #00ff00;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.result-card p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.token-amount {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.eligible {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.not-eligible {
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
}





/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .title {
        font-family: "Press Start 2P", system-ui;
        font-size: 2rem;
        font-weight: 400;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 6rem 1rem 1rem;
    }
    
    .progress-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .progress-header h3 {
        font-family: "Press Start 2P", system-ui;
        font-size: 1.0rem;
        font-weight: 400;
    }
    
    .progress-sphero {
        width: 50px;
        height: 50px;
        top: -12px;
    }
    
    .checker-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .input-section input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .check-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-card h3 {
        font-family: "Press Start 2P", system-ui;
        font-size: 1.1rem;
        font-weight: 400;
    }
    
    .result-card p {
        font-size: 1rem;
    }
    
    .token-amount {
        font-size: 1.6rem !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-logo {
        font-family: "Press Start 2P", system-ui;
        font-size: 1.3rem;
        font-weight: 400;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .title {
        font-family: "Press Start 2P", system-ui;
        font-size: 1.5rem;
        font-weight: 400;
        word-break: break-word;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 5rem 0.5rem 1rem;
    }
    
    .progress-container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .progress-header h3 {
        font-family: "Press Start 2P", system-ui;
        font-size: 0.9rem;
        font-weight: 400;
    }
    
    .progress-stats {
        font-size: 1.3rem;
    }
    
    .progress-sphero {
        width: 40px;
        height: 40px;
        top: -10px;
    }
    
    .checker-container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .input-section input {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    .check-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
    
    .result-card {
        padding: 0.8rem;
    }
    
    .result-card h3 {
        font-family: "Press Start 2P", system-ui;
        font-size: 1rem;
        font-weight: 400;
    }
    
    .result-card p {
        font-size: 0.9rem;
    }
    
    .token-amount {
        font-size: 1.4rem !important;
        word-break: break-word;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 4rem 1rem 1rem;
    }
    
    .title {
        font-family: "Press Start 2P", system-ui;
        font-size: 1.8rem;
        font-weight: 400;
    }
    
    .checker-container {
        margin-bottom: 1.5rem;
    }
}

/* Matrix text effect */
.matrix-text {
    font-family: 'Courier New', monospace;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.4;
    }
} 