:root {
    --primary-gold: #FFD700;
    --dark-bg: #0f0f23;
    --input-bg: #1a1a2e;
    --input-border: #333;
    --button-bg: #00C4FF;
    --button-hover-bg: #00A3D6;
    --header-text-color: #C2C5CA;
    --sparkle-color: #FFFFFF;
    --light-text-color: #94a3b8;
}

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

body, html {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--primary-gold);
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.toggle-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-option {
    cursor: pointer;
    font-weight: 600;
    color: var(--light-text-color);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.toggle-option.active {
    color: var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
}

.toggle-option:hover {
    color: #00bcd4;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.input-wrapper {
    width: 100%;
    text-align: left;
}

.input-wrapper label {
    font-size: 0.875rem;
    color: var(--header-text-color);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.form-content input {
    padding: 0.75rem;
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-content input:focus {
    border-color: var(--primary-gold);
    background: #222;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-content button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #64ffda, #00bcd4);
    color: #0f0f23;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.hidden { display: none; }

.discord-link {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #7289da;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    z-index: 2;
    box-shadow: 0 0 6px rgba(114, 137, 218, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-link:hover {
    background: #5b6eae;
    transform: translateY(-2px);
}

.welcome-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    text-align: center;
}

.logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.text-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-header h1 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.tagline {
    font-size: 0.875rem;
    color: var(--light-text-color);
}

.sparkle {
    font-size: 1.25rem;
    color: var(--sparkle-color);
}

.divider {
    margin: 1rem 0;
    border-top: 1px solid var(--light-text-color);
    width: 80%;
}

.cheat-warning {
    font-size: 0.75rem;
    color: var(--light-text-color);
    text-align: center;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.error-message.hidden {
    opacity: 0;
    visibility: hidden;
}

.dot {
    position: fixed;
    background: #00bcd4;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    z-index: 9999;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh);
        opacity: 0;
    }
}