body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1b2a;
    color: #ffffff;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.game-card {
    background: #1b263b;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 2px solid #e84393;
}

.header-banner {
    background: linear-gradient(135deg, #fd79a8, #6c5ce7);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-banner h1 {
    margin: 0;
    font-size: 22px;
}

.xp-badge {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #f1c40f;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    color: #f1c40f;
}

.game-container {
    position: relative;
    padding: 30px;
    min-height: 280px;
    background: radial-gradient(circle, #1b263b 0%, #0d1b2a 100%);
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

.name-entry-box {
    margin: 15px 0;
    width: 100%;
    max-width: 320px;
}

#player-name-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    border: 2px solid #fd79a8;
    border-radius: 10px;
    background: #0d1b2a;
    color: #ffffff;
    text-align: center;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

#player-name-input:focus {
    border-color: #00b894;
}

.sub-text {
    font-size: 14px;
    color: #a0aec0;
    margin: 10px 0 15px 0;
}

.action-btn {
    background: #00b894;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
}

.word-number {
    font-size: 14px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.audio-btn {
    background: #e17055;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.4);
    margin-bottom: 15px;
}

.audio-btn:hover {
    background: #d63031;
}

.clue-box {
    font-size: 16px;
    color: #dfe6e9;
    margin-bottom: 25px;
    font-style: italic;
}

.input-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

#spell-input {
    flex: 1;
    padding: 14px;
    font-size: 20px;
    border: 2px solid #e84393;
    border-radius: 8px;
    background: #1b263b;
    color: #ffffff;
    text-align: center;
    outline: none;
}

#spell-input:focus {
    border-color: #fd79a8;
}

.submit-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 0 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #a29bfe;
}

.feedback {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    min-height: 24px;
}

.feedback.correct { color: #55efc4; }
.feedback.incorrect { color: #ff7675; }

.control-panel {
    padding: 20px 30px;
    background: #0d1b2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-bar {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.xp-msg {
    font-size: 22px;
    color: #f1c40f;
    font-weight: bold;
    margin: 10px 0;
}

.back-link {
    color: #fd79a8;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}