@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

:root {
    --primary: #f2a900;
    --primary-dark: #c18700;
    --bg: #1a1a1a;
    --card: #2a2a2a;
    --text: #ffffff;
    --black: #000000;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 600px;
    display: block;
    background: url('images/background.jpg') no-repeat center center;
    background-size: cover;
    border: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(242, 169, 0, 0.3);
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 768px) {
    #game-container {
        max-width: 100vw;
        height: calc(100dvh - 60px);
        border: none;
        border-radius: 0;
    }

    body.immersive-mode #game-container {
        height: 100dvh;
    }
}

/* ... existing canvas ... */

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlay styles moved to game-ui.css */

/* ... existing typography ... */

h1 {
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 2px 2px var(--black);
    margin-bottom: 1rem;
}

/* Screen content styles moved to game-ui.css */

/* ... existing buttons ... */

/* HUD styles moved to game-ui.css */

.game-btn,
#game-container button {
    background: var(--primary);
    color: var(--black);
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s, background 0.1s;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Subtle button shadow */
}

.game-btn:hover,
#game-container button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.game-btn:active,
#game-container button:active {
    transform: scale(0.95);
}

/* UI layer styles moved to game-ui.css */



/* Modal Styling for Compact Layout */
.modal-dialog {
    max-width: 380px !important;
    margin: 0.5rem auto;
}

.modal-content {
    border-width: 2px !important;
    border-radius: 12px;
}

.modal-header {
    padding: 0.75rem 1rem;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 0.5rem 1rem;
}

.modal-body h4 {
    font-size: 1.25rem;
}

.modal-body p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Smaller form controls in modals */
.modal-body .form-control {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

/* Ensure modal buttons aren't too bulky */
.modal .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
}