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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #c9c9c9;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #eee, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    border-bottom: 2px solid #16213e;
}

h1 {
    font-size: 3em;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: #e94560;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

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

.subtitle {
    font-size: 1.2em;
    color: #8b8b8b;
    letter-spacing: 3px;
    font-style: italic;
}

.riddle-container {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid #16213e;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.riddle-header {
    text-align: center;
    margin-bottom: 30px;
    color: #e94560;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.riddle-title {
    font-size: 2em;
    color: #e94560;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 3px;
}

.riddle-question {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    color: #d4d4d4;
    font-style: italic;
}

.riddle-hint {
    font-size: 0.9em;
    color: #7a7a7a;
    text-align: center;
    font-style: italic;
    margin-top: 15px;
}

.answer-form {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

#answer-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #16213e;
    border-radius: 5px;
    color: #c9c9c9;
    font-size: 1.1em;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

#answer-input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.submit-btn {
    padding: 15px 30px;
    background: #e94560;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1.1em;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: #c73852;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    transform: translateY(-2px);
}

.result-message {
    margin-top: 25px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1em;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s;
}

.result-message.show {
    opacity: 1;
}

.result-message.correct {
    background: rgba(46, 213, 115, 0.2);
    border: 2px solid #2ed573;
    color: #2ed573;
}

.result-message.incorrect {
    background: rgba(233, 69, 96, 0.2);
    border: 2px solid #e94560;
    color: #e94560;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    flex: 1;
    padding: 15px 30px;
    background: rgba(22, 33, 62, 0.8);
    border: 2px solid #16213e;
    border-radius: 5px;
    color: #c9c9c9;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.nav-btn:hover:not(:disabled) {
    background: #16213e;
    border-color: #e94560;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    h1 { font-size: 2em; letter-spacing: 4px; }
    .riddle-container { padding: 25px; }
    .riddle-title { font-size: 1.5em; }
    .riddle-question { font-size: 1.1em; }
    .answer-form { flex-direction: column; }
}
