* {
    box-sizing: border-box;
}
input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
#game-container {
    width: 100vw;
    height: 100vh;
}
#settings-button {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}
#gear-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
#popup-overlay.hidden {
    display: none;
}
#popup-card {
    width: 80vw;
    height: 80vh;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
#popup-card h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: sans-serif;
    font-size: 48px;
}
#inputs-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
#inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px 24px;
}
.inventory-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.inventory-field label {
    font-size: 24px;
    font-weight: bold;
    color: #66b142;
    font-family: sans-serif;
}
.inventory-field input {
    width: 100%;
    font-size: 24px;
    border: 2px solid #66b142;
    padding: 10px;
    border-radius: 5px;
    font-family: sans-serif;
}
#inputs-actions {
    margin-top: 20px;
    flex-shrink: 0;
}
#save-button {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    background-color: #66b142;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: sans-serif;
}
#default-button {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    background-color: #808080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-family: sans-serif;
}
#app-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    flex-shrink: 0;
}
#app-settings h2 {
    text-align: center;
    margin: 0 0 16px;
    font-family: sans-serif;
    font-size: 28px;
    color: #333;
}
#app-settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#fullscreen-button,
#install-button {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: sans-serif;
}
#fullscreen-button {
    background-color: #49b1a8;
}
#install-button {
    background-color: #86bff4;
}
#install-button.hidden,
#install-status.hidden {
    display: none;
}
#install-status {
    margin: 10px 0 0;
    text-align: center;
    font-family: sans-serif;
    font-size: 16px;
    color: #66b142;
}
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}
#logo {
    width: 68px;
    height: auto;
}