body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#gameCanvas {
    display: block;
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: white;
    pointer-events: none;
}

#health-container {
    width: 200px;
    height: 20px;
    background-color: #c0392b;
    border: 2px solid white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

#health-bar {
    width: 100%;
    height: 100%;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

#stats {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    margin-bottom: 5px;
}

#weapon-display {
    background-color: rgba(241, 196, 15, 0.2);
    border-left: 4px solid #f1c40f;
    padding: 10px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px black;
    display: flex;
    flex-direction: column;
}

#armor-val {
    color: #3498db;
}

#victory-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 174, 96, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: slideDown 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

#victory-screen h1 { font-size: 5rem; margin: 0; text-shadow: 4px 4px #1e8449; }
#victory-screen h2 { font-size: 3rem; margin: 0 0 20px 0; color: #f1c40f; }

#victory-stats {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

#victory-screen button {
    padding: 15px 60px;
    font-size: 1.5rem;
    font-weight: bold;
    background: white;
    color: #27ae60;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px #1e8449;
    transition: all 0.2s;
}

#victory-screen button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px #1e8449;
}

#victory-screen button:active {
    transform: translateY(4px);
    box-shadow: 0 6px #1e8449;
}

#kill-feed {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    color: white;
    text-align: right;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
}

.kill-msg {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(50px); }
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #2c3e50 0%, #000 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#start-screen h1 {
    font-size: 5rem;
    margin: 0;
    color: #e67e22;
    text-shadow: 4px 4px #c0392b;
}

.controls-hint {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

#start-button {
    padding: 15px 40px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background-color: #27ae60;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

#start-button:hover {
    transform: scale(1.1);
    background-color: #2ecc71;
}

#minimap-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    border-radius: 10px;
    z-index: 10;
    overflow: hidden;
}

#minimap {
    width: 100%;
    height: 100%;
}

#overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
}

#overlay-title {
    font-size: 3rem;
    margin: 0;
}

#overlay-subtitle {
    font-size: 1.5rem;
    margin: 10px 0 0 0;
}
