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

body {
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
}

#game {
    display: block;
    width: 100vw;
    height: 100vh;
}

#hud {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.panel {
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.95), rgba(45, 28, 25, 0.95));
    border: 2px solid #cd853f;
    border-radius: 8px;
    padding: 12px 24px;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.panel label {
    display: block;
    font-size: 11px;
    color: #cd853f;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.panel span {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

#mission-panel span {
    font-size: 16px;
    color: #90ee90;
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

#controls span {
    background: rgba(62, 39, 35, 0.9);
    border: 1px solid #cd853f;
    border-radius: 5px;
    padding: 8px 16px;
    color: #ddd;
    font-size: 13px;
}

#start-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#start-screen h1 {
    font-size: 72px;
    color: #cd853f;
    text-shadow: 3px 3px 0 #8b4513, 0 0 30px rgba(205,133,63,0.5);
    letter-spacing: 10px;
    margin-bottom: 15px;
}

#start-screen p {
    color: #90ee90;
    font-size: 20px;
    margin-bottom: 40px;
}

#start-btn {
    background: linear-gradient(135deg, #8b4513, #654321);
    border: 3px solid #cd853f;
    border-radius: 10px;
    color: #fff;
    font-size: 24px;
    padding: 18px 60px;
    cursor: pointer;
    letter-spacing: 4px;
    transition: all 0.2s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

#start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #a0522d, #8b4513);
}

#level-selector {
    margin-bottom: 30px;
    text-align: center;
}

#level-selector label {
    display: block;
    font-size: 12px;
    color: #cd853f;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

#level-select {
    background: linear-gradient(135deg, #3e2723, #2d1c19);
    border: 2px solid #cd853f;
    border-radius: 8px;
    color: #ffd700;
    font-size: 16px;
    padding: 12px 30px;
    cursor: pointer;
    min-width: 250px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cd853f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

#level-select:hover {
    border-color: #ffd700;
}

#level-select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(205, 133, 63, 0.5);
}

#level-select option {
    background: #2d1c19;
    color: #ffd700;
    padding: 10px;
}

#editor-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3e2723, #2d1c19);
    border: 2px solid #cd853f;
    border-radius: 8px;
    color: #cd853f;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.2s;
}

#editor-link:hover {
    background: linear-gradient(135deg, #5a3d2b, #3d2817);
    color: #ffd700;
    border-color: #ffd700;
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
}
