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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    cursor: crosshair;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

/* Visible hint at start */
.hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hint.visible {
    opacity: 1;
    pointer-events: all;
}

.hint h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1e3c72;
}

.hint p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.sub-hint {
    font-size: 14px !important;
    color: #999 !important;
    margin-top: 20px !important;
}

/* All invisible elements */
.invisible-element {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.invisible-element:hover {
    opacity: 1 !important;
    transform: scale(1.02);
}

.invisible-element.discovered {
    opacity: 0.1;
}

.invisible-element.discovered:hover {
    opacity: 1 !important;
}

/* Helper mode - shows outlines */
body.helper-mode .invisible-element {
    outline: 2px dashed rgba(255, 255, 255, 0.3);
    outline-offset: 5px;
}

body.helper-mode .invisible-element:hover {
    outline-color: rgba(255, 255, 255, 0.8);
}

/* Login form */
.login-form {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.login-form h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.links {
    text-align: center;
    font-size: 14px;
}

.links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.links a:hover {
    color: white;
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* Floating hints */
.floating-hint {
    position: absolute;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#hint1 {
    top: 150px;
    left: 50px;
}

#hint2 {
    top: 400px;
    right: 80px;
}

#hint3 {
    bottom: 150px;
    left: 100px;
}

/* Stats */
.stats {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stats p {
    margin: 8px 0;
    font-size: 14px;
}

/* Helper toggle */
.helper-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.helper-toggle button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.helper-toggle button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.helper-hint {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Secret message */
.secret-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 250px;
}

.secret-message p {
    margin: 5px 0;
    font-size: 14px;
}

/* Canvas for trail effect */
#trailCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Success message */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.success-content {
    background: white;
    color: #333;
    padding: 60px 80px;
    border-radius: 20px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.success-overlay.show .success-content {
    transform: scale(1);
}

.success-content h2 {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-content p {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.success-content button {
    padding: 14px 32px;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.success-content button:hover {
    transform: translateY(-2px);
}

/* Animation for discovered elements */
@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

.invisible-element.discovered {
    animation: pulse 2s ease-in-out infinite;
}

/* Tooltip when hovering */
.invisible-element::before {
    content: attr(data-hint);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.invisible-element:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}
