
:root {
--midnight: #0a0a0f;
--deep-blue: #141420;
--accent-blue: #3b82f6;
--text-primary: #e2e8f0;
--text-secondary: #94a3b8;
--neon-green: #4ade80;
}

body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
background: var(--midnight);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.6;
}

.container {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
}

.card {
background: var(--deep-blue);
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06);
border: 1px solid rgba(255, 255, 255, 0.1);
margin-top: 2rem;
transition: transform 0.2s ease;
}

.arcade-text {
font-family: 'Press Start 2P', cursive;
font-size: 0.8em;
color: var(--neon-green);
}

.stats-display {
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(0, 0, 0, 0.3);
padding: 1rem;
border-radius: 8px;
margin-bottom: 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer {
font-family: 'Press Start 2P', cursive;
font-size: 1.2rem;
color: var(--neon-green);
}

.player-name {
color: var(--accent-blue);
}

.name-entry {
background: rgba(0, 0, 0, 0.5);
padding: 2rem;
border-radius: 12px;
text-align: center;
margin-bottom: 2rem;
}

.name-entry input {
background: var(--deep-blue);
border: 2px solid var(--accent-blue);
padding: 0.75rem 1rem;
border-radius: 6px;
color: var(--text-primary);
font-family: 'Press Start 2P', cursive;
font-size: 0.8rem;
width: 80%;
max-width: 300px;
text-align: center;
margin-bottom: 1rem;
}

.name-entry button {
background: var(--accent-blue);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-family: 'Press Start 2P', cursive;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.2s ease;
}

.name-entry button:hover {
transform: translateY(-2px);
box-shadow: 0 0 15px var(--accent-blue);
}

h1 {
font-size: 2.5rem;
font-weight: 600;
margin: 0 0 1.5rem 0;
background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.2;
}

.subtitle {
color: var(--text-secondary);
font-size: 1.1rem;
margin-bottom: 2rem;
}

.hint-list {
list-style: none;
padding: 0;
margin: 1.5rem 0;
}

.hint-list li {
color: var(--text-secondary);
padding: 0.5rem 0;
display: flex;
align-items: center;
}

.hint-list li::before {
content: "→";
color: var(--accent-blue);
margin-right: 0.75rem;
}

.hidden-clue {
display: none;
}

.decorative-image {
width: 100%;
height: 300px;
background: linear-gradient(45deg, var(--deep-blue), var(--midnight));
border-radius: 8px;
margin: 2rem 0;
opacity: 0.8;
}

@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}

.pulse {
animation: pulse 4s infinite ease-in-out;
}

#terminal-text {
font-family: monospace;
color: var(--accent-blue);
margin-top: 2rem;
padding: 1rem;
background: rgba(59, 130, 246, 0.1);
border-radius: 6px;
}

.leaderboard {
margin-top: 2rem;
padding: 1rem;
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
}

.leaderboard-title {
font-family: 'Press Start 2P', cursive;
color: var(--neon-green);
font-size: 0.8rem;
margin-bottom: 1rem;
}

.leaderboard-entry {
display: flex;
justify-content: space-between;
padding: 0.5rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clue-input {
background: var(--deep-blue);
border: 2px solid var(--accent-blue);
padding: 0.75rem 1rem;
border-radius: 6px;
color: var(--text-primary);
font-family: 'Inter', sans-serif;
font-size: 0.9rem;
width: 100%;
margin-bottom: 1rem;
}

.clue-submit {
background: var(--accent-blue);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
font-family: 'Inter', sans-serif;
cursor: pointer;
transition: all 0.2s ease;
}

.progress-bar {
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
height: 20px;
margin-top: 1rem;
overflow: hidden;
}

.progress-fill {
background: var(--accent-blue);
height: 100%;
width: 0%;
transition: width 0.3s ease;
}

.clue-status {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 0.5rem;
margin-top: 1rem;
}

.clue-indicator {
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
height: 4px;
transition: background 0.3s ease;
}

.clue-indicator.found {
background: var(--neon-green);
}

/* Clue 7: Mobile viewport */
@media (max-width: 768px) {
    .mobile-only-element {
        display: block !important;
    }
}

/* Clue 11: Color hint */
.color-hint-element {
    background-color: #247365;  /* The number 247 is hidden in this hex code */
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    opacity: 0.5;
}

.hint-button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.2s ease;
}

.hint-button:hover {
    background: var(--deep-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}