body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a2e;
}

canvas {
    display: block;
}

/* HOME SCREEN */
#homeScreen,
#lobbyScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#homeContent,
#lobbyContent {
    background: linear-gradient(135deg, #0f3460, #16213e);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #e94560;
    min-width: 350px;
}

#homeContent h1 {
    color: #e94560;
    margin: 0 0 25px 0;
    font-family: Arial, sans-serif;
    font-size: 2.5em;
}

#playerNameInput {
    padding: 14px 20px;
    font-size: 18px;
    border: 2px solid #e94560;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    outline: none;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

#playerNameInput:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

#modeButtons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#singlePlayerBtn,
#multiPlayerBtn,
#createRoomBtn,
#backToMenuBtn {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

#singlePlayerBtn {
    background: linear-gradient(135deg, #00d9ff, #0099cc);
    color: #1a1a2e;
    font-weight: bold;
}

#multiPlayerBtn {
    background: linear-gradient(135deg, #e94560, #c23052);
    color: white;
    font-weight: bold;
}

#singlePlayerBtn:hover,
#multiPlayerBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

/* Room Section */
#roomSection {
    margin-top: 20px;
}

#roomSection h3 {
    color: #fff;
    margin-bottom: 15px;
}

#roomList {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.room-item {
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid #e94560;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.room-item:hover {
    background: rgba(233, 69, 96, 0.4);
}

.room-item .room-name {
    color: #fff;
    font-weight: bold;
}

.room-item .room-players {
    color: #00d9ff;
    font-size: 14px;
}

.no-rooms {
    color: #888;
    font-style: italic;
}

#createRoomBtn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    width: 48%;
}

#backToMenuBtn {
    background: #444;
    color: white;
    width: 48%;
}

/* Lobby Screen */
#lobbyContent h2 {
    color: #e94560;
    margin: 0 0 10px 0;
}

#lobbyContent h3 {
    color: #00d9ff;
    margin: 0 0 20px 0;
}

#playerList {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

#playerList h4 {
    color: #fff;
    margin: 0 0 15px 0;
}

#lobbyPlayers {
    list-style: none;
    padding: 0;
    margin: 0;
}

#lobbyPlayers li {
    color: #fff;
    padding: 8px 12px;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 5px;
    margin-bottom: 5px;
}

#lobbyPlayers li.host {
    border-left: 3px solid #e94560;
}

#startGameBtn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
}

#leaveRoomBtn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#waitingText {
    color: #888;
    font-style: italic;
    margin-top: 15px;
}

/* Game Screen */
#gameScreen {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Player Count Display */
#playerCount {
    position: fixed;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #2ecc71;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    z-index: 100;
    border: 1px solid #2ecc71;
}

/* Phase Display */
#phaseDisplay {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #e74c3c;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    z-index: 100;
    border: 1px solid #e74c3c;
}

/* Chat Box */
#chatBox {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 300px;
    z-index: 100;
    font-family: Arial, sans-serif;
}

#chatMessages {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px 8px 0 0;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

#chatMessages:empty {
    display: none;
}

#chatMessages:empty+#chatInputContainer {
    border-radius: 8px;
}

.chatMessage {
    color: #fff;
    font-size: 13px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.chatMessage .chatName {
    color: #3498db;
    font-weight: bold;
}

.chatMessage.system {
    color: #95a5a6;
    font-style: italic;
}

#chatInputContainer {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 8px 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#chatInput {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

#chatInput:focus {
    background: rgba(255, 255, 255, 0.2);
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#restartBtn {
    pointer-events: auto;
    display: none;
    padding: 15px 30px;
    font-size: 24px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#restartBtn:hover {
    background-color: #c0392b;
}

/* High Scores Screen */
#highScoresScreen,
#gameOverScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#highScoresContent,
#gameOverContent {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #f1c40f;
    min-width: 400px;
}

#scoresTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #fff;
}

#scoresTable th {
    background: #e67e22;
    padding: 10px;
    color: white;
}

#scoresTable td {
    padding: 8px;
    border-bottom: 1px solid #444;
}

#scoresTable tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

#scoresTable tr:first-child {
    font-weight: bold;
    color: #f1c40f;
}

#backFromScoresBtn,
#submitScoreBtn,
#restartFromOverBtn,
#menuFromOverBtn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    font-weight: bold;
}

#backFromScoresBtn {
    background: #95a5a6;
    color: white;
}

#submitScoreBtn {
    background: #2ecc71;
    color: white;
}

#restartFromOverBtn {
    background: #3498db;
    color: white;
}

#menuFromOverBtn {
    background: #e74c3c;
    color: white;
}

#gameOverTitle {
    color: #e74c3c;
    font-size: 3em;
    margin-bottom: 10px;
}

#finalScore {
    font-size: 2em;
    color: #fff;
    font-weight: bold;
}

/* Score Display in Game */
#scoreDisplay {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #f1c40f;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    z-index: 100;
    border: 1px solid #f1c40f;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

/* Move Phase Display below Score */
#phaseDisplay {
    top: 60px;
}

/* Weapon Display */
#weaponDisplay {
    position: fixed;
    top: 105px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #3498db;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    z-index: 100;
    border: 1px solid #3498db;
    min-width: 120px;
    text-align: center;
}

#weaponDisplay.machine_gun {
    color: #e67e22;
    border-color: #e67e22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

#weaponDisplay.shotgun {
    color: #9b59b6;
    border-color: #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

/* High Scores Button on Home */
#highScoresBtn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#highScoresBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(241, 196, 15, 0.4);
}

/* Pause Screen */
#pauseScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    touch-action: auto;
    pointer-events: auto;
}

#pauseContent {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #3498db;
    min-width: 350px;
}

#pauseTitle {
    color: #3498db;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-family: Arial, sans-serif;
}

#pauseMessage {
    color: #bbb;
    font-size: 1.1em;
    margin-bottom: 25px;
}

#pauseButtons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#pauseButtons button {
    padding: 14px 30px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
    pointer-events: auto;
}

#resumeBtn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

#pauseRestartBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

#pauseMainMenuBtn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

#pauseButtons button:hover {
    transform: scale(1.03);
}

#pauseButtons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Game Over Screen */
#gameOverScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    touch-action: auto;
    pointer-events: auto;
}

#gameOverContent {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #e74c3c;
    min-width: 400px;
}

#gameOverTitle {
    color: #e74c3c;
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-family: Arial, sans-serif;
}

#finalScore {
    color: #f1c40f;
    font-size: 2em;
    font-weight: bold;
    margin: 10px 0;
}

#finalPhase {
    color: #3498db;
    font-size: 1.2em;
    margin: 10px 0 20px 0;
}

#submitScoreSection {
    margin: 20px 0;
}

#submitScoreSection p {
    color: #bbb;
    margin-bottom: 10px;
}

#submitScoreBtn {
    padding: 12px 25px;
    font-size: 16px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

#submitScoreBtn:hover {
    transform: scale(1.05);
}

#gameOverButtons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

#playAgainBtn,
#mainMenuBtn {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
    pointer-events: auto;
    position: relative;
    z-index: 2001;
}

#playAgainBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

#mainMenuBtn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

#playAgainBtn:hover,
#mainMenuBtn:hover {
    transform: scale(1.05);
}

#shareOnXBtn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    pointer-events: auto;
    position: relative;
    z-index: 2001;
}

#shareOnXBtn:hover {
    transform: scale(1.05);
    background: #333;
}

/* High Scores Screen */
#highScoresScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#highScoresContent {
    background: linear-gradient(135deg, #0f3460, #16213e);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #f1c40f;
    min-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

#highScoresContent h1 {
    color: #f1c40f;
    margin: 0 0 25px 0;
    font-family: Arial, sans-serif;
    font-size: 2.5em;
}

#scoresTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#scoresTable th {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 12px 15px;
    font-size: 14px;
}

#scoresTable td {
    padding: 10px 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#scoresTable tbody tr:nth-child(1) td {
    color: #f1c40f;
    font-weight: bold;
    font-size: 1.1em;
}

#scoresTable tbody tr:nth-child(2) td {
    color: #bdc3c7;
}

#scoresTable tbody tr:nth-child(3) td {
    color: #cd6133;
}

#scoresTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

#backFromScoresBtn {
    padding: 12px 30px;
    font-size: 16px;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

#backFromScoresBtn:hover {
    transform: scale(1.05);
}

/* ==================== MOBILE CONTROLS ==================== */

/* Mobile Controls Container */
#mobileControls {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    pointer-events: none;
}

/* Show on touch devices */
@media (pointer: coarse),
(hover: none) {
    #mobileControls {
        display: block;
    }
}

/* Joystick Zones - Split screen left/right */
.joystick-zone {
    position: absolute;
    bottom: 0;
    height: 60%;
    pointer-events: auto;
    touch-action: none;
}

#leftJoystickZone {
    left: 0;
    width: 50%;
    height: 100%;
}

#rightJoystickZone {
    right: 0;
    width: 50%;
    height: 100%;
}

/* Joystick Base (appears on touch) */
.joystick-base {
    display: none;
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.joystick-base.active {
    display: block;
}

/* Left joystick - blue theme for movement */
#leftJoystickBase {
    box-shadow:
        0 0 30px rgba(52, 152, 219, 0.4),
        inset 0 0 20px rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.5);
}

/* Right joystick - red/orange theme for combat */
#rightJoystickBase {
    box-shadow:
        0 0 30px rgba(231, 76, 60, 0.4),
        inset 0 0 20px rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.5);
}

/* Joystick Knob */
.joystick-knob {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out;
}

/* Left knob - blue for movement */
#leftJoystickKnob {
    background: radial-gradient(circle at 30% 30%, #3498db, #2980b9);
    box-shadow:
        0 4px 20px rgba(52, 152, 219, 0.6),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Right knob - red for combat */
#rightJoystickKnob {
    background: radial-gradient(circle at 30% 30%, #e74c3c, #c0392b);
    box-shadow:
        0 4px 20px rgba(231, 76, 60, 0.6),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Target Lock Indicator - Hidden */
#targetLockIndicator {
    display: none !important;
}

/* Static joystick hints (always visible) */
.joystick-hint {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

#leftJoystickHint {
    left: 80px;
    bottom: 80px;
}

#rightJoystickHint {
    right: 80px;
    bottom: 80px;
}

/* Mobile touch feedback */
@media (pointer: coarse), (hover: none) {
    /* Hide chat on mobile */
    #chatBox {
        display: none;
    }

    /* Adjust UI for mobile */
    #scoreDisplay,
    #phaseDisplay,
    #weaponDisplay {
        font-size: 12px;
        padding: 6px 10px;
    }

    #phaseDisplay {
        top: 50px;
    }

    #weaponDisplay {
        top: 85px;
    }

    #playerCount {
        font-size: 11px;
        padding: 5px 8px;
    }

    /* Make sure game area doesn't scroll */
    #gameScreen {
        touch-action: none;
        overflow: hidden;
    }
}

/* Prevent text selection and context menu on mobile */
#mobileControls,
.joystick-zone,
.joystick-base,
.joystick-knob {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* HELP OVERLAY */
#helpOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#helpContent {
    background: linear-gradient(135deg, #0f3460, #16213e);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #e94560;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#helpContent h2 {
    color: #e94560;
    margin: 0 0 20px 0;
    font-family: Arial, sans-serif;
    font-size: 1.8em;
}

.help-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
}

.help-section:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}

.help-section h3 {
    color: #fff;
    font-size: 1.1em;
    margin: 0 0 12px 0;
    font-family: Arial, sans-serif;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.control-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-key {
    color: #e94560;
    font-weight: bold;
    font-size: 1em;
    font-family: monospace;
}

.control-desc {
    color: #aaa;
    font-size: 0.85em;
}

.tips-list {
    text-align: left;
    color: #ccc;
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em;
    line-height: 1.8;
}

.tips-list li {
    margin-bottom: 5px;
}

#closeHelpBtn {
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#closeHelpBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.help-hint {
    color: #666;
    font-size: 0.75em;
    margin: 10px 0 0 0;
}

#helpBtn {
    background: linear-gradient(135deg, #4a4a6a, #3a3a5a);
    color: white;
    border: 2px solid #6a6a8a;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    width: 100%;
}

#helpBtn:hover {
    background: linear-gradient(135deg, #5a5a7a, #4a4a6a);
    border-color: #e94560;
}

/* Hide desktop/mobile controls based on device */
@media (max-width: 768px) {
    #desktopControls {
        display: none;
    }

    #helpContent {
        padding: 20px 25px;
        max-width: 90%;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    #mobileControls {
        display: none;
    }
}