html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #222;
}
#renderCanvas {
    width: 100%;
    height: 100%;
    touch-action: none;
}

#p1Stats {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: white;
    font-family: sans-serif;
    background: rgba(0,0,255,0.2);
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #4287f5;
    min-width: 200px;
    max-height: 40vh; 
    overflow-y: auto; 
}

#aiStats {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    color: white;
    font-family: sans-serif;
    background: rgba(255,0,0,0.2);
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #f54242;
    min-width: 200px;
    max-height: 40vh; 
    overflow-y: auto; 
}

.bankAmount { font-size: 24px; font-weight: bold; margin-bottom: 5px; border-bottom: 1px solid #555; padding-bottom: 5px; }
.debtAmount { font-size: 18px; color: #ff6b6b; margin-bottom: 10px; border-bottom: 1px solid #555; padding-bottom: 10px; }
.portfolioList { font-size: 16px; line-height: 1.6; }

#uiContainer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 80%;
}

button {
    padding: 15px 30px; font-size: 20px; font-weight: bold; cursor: pointer;
    background-color: #4CAF50; color: white; border: none; border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: background-color 0.2s; margin: 0 10px;
}
button:hover { background-color: #45a049; }
button:disabled { background-color: #888; cursor: not-allowed; }

#buyBtn { background-color: #2196F3; }
#creditBtn { background-color: #9C27B0; display: none; }
#passBtn { background-color: #f44336; }
#okBtn { background-color: #4CAF50; display: none; }

#actionMenu { display: none; margin-top: 10px; }

#upgradeMenu { 
    display: none; margin-top: 10px; background: rgba(0,0,0,0.8); 
    padding: 15px; border-radius: 8px; color: white; border: 2px solid #4CAF50;
}
#upgradeSlider { width: 80%; margin: 10px 0; }
.propSelect { font-size: 18px; padding: 5px; margin-bottom: 10px; }

#status {
    color: white; font-family: sans-serif; margin-bottom: 10px; font-size: 22px; font-weight: bold;
    text-shadow: 2px 2px 4px black; background: rgba(0,0,0,0.7); padding: 10px 20px; border-radius: 5px; display: inline-block;
}

#rentPopup {
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 100; align-items: center; justify-content: center;
}
#rentPopupContent {
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    padding: 40px; border-radius: 15px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 5px solid #d4af37;
    max-width: 500px; width: 80%;
}
#rentPopupTitle { font-size: 36px; font-weight: bold; margin-bottom: 15px; color: #333; }
#rentPopupMessage { font-size: 24px; margin-bottom: 25px; color: #555; }
#rentPopupBtn { background-color: #d4af37; color: white; padding: 15px 40px; font-size: 24px; }
#rentPopupBtn:hover { background-color: #b8962e; }
