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 #415a77;
}

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

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

.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;
    width: 100%;
    height: 380px;
    background: radial-gradient(circle, #1b263b 0%, #0d1b2a 100%);
    overflow: hidden;
    border-bottom: 3px solid #e74c3c;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.94);
    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;
}

/* Speed Selector Styles */
.speed-selector-title {
    font-size: 15px;
    color: #a0aec0;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

.speed-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.speed-btn {
    background: #1b263b;
    border: 2px solid #415a77;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.speed-btn:hover {
    border-color: #3498db;
    background: #2b3a4e;
}

.speed-btn.active {
    background: #e74c3c;
    border-color: #ff6b6b;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

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

.action-btn:hover {
    background: #27ae60;
    transform: scale(1.05);
}

#word-arena {
    position: absolute;
    width: 100%;
    height: 320px;
}

.asteroid-word {
    position: absolute;
    background: rgba(230, 126, 34, 0.2);
    border: 2px solid #e67e22;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
    white-space: nowrap;
}

.laser-base {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
}

.control-panel {
    padding: 20px 30px;
    background: #0d1b2a;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

#type-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    font-size: 20px;
    border: 2px solid #415a77;
    border-radius: 8px;
    background: #1b263b;
    color: #ffffff;
    text-align: center;
    outline: none;
}

#type-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

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

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

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