html {
    overscroll-behavior-y: contain;
}

body {
    overscroll-behavior-y: contain;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('assets/midgard.jpg');
    background-size: cover;
    /* Ensures the image covers the screen */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    background-attachment: fixed;
    /* Keeps the background fixed during scrolling (optional) */
}

.buttons-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    margin-top: auto;
}

.buttons-column button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.buttons-column button:hover {
    background-color: #0056b3;
}

.image-column {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.image-column img {
    width: 400px;
    height: 400px;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.scores-column {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* match the chat-container's deeper shadow */
    border-radius: 10px;
    flex: 0 0 auto;
    min-width: 350px;
    /* make scoreboard wider */
    max-width: 500px;
    /* allow it to grow more */
    order: 1;
    /* left side */
    margin-right: 20px;
    padding: 15px;
    /* so it has some internal spacing, like chat */
    display: flex;
    flex-direction: column;
    height: 90vh;
    /* Make it take 75% of viewport height */
    justify-content: center;
    margin-top: auto;
    /* Helps with centering */
    margin-bottom: auto;
    /* Helps with centering */
}


.scores-column ul {
    list-style-type: none;
    padding: 0;
}


#roundTimer {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: black;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    /* Adjust value as needed to ensure it's above other elements */
    padding: 5px 10px;
    /* Optional: Add padding for better appearance */
    border-radius: 5px;
    /* Optional: Rounded corners */
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* a bit darker for better contrast */
}

canvas {
    margin-top: 20px;
    box-sizing: border-box;
    outline: 5px solid black;
    /* Adds a border outside the canvas */
    outline-offset: -5px;
    /* Adjusts the position of the outline */
    margin: 10px;
}

#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2500;
    font-size: 32px;
    max-width: 90%;
    text-align: center;
    box-sizing: border-box;
}


#toast.show {
    opacity: 1;
}

body {
    background-color: #cccccc;
    color: #333;
    /* Optional: A dark text color that pairs well with light gray */
    font-family: Arial, sans-serif;
    /* Optional: Ensure a readable font */
    margin: 0;
    /* Optional: Removes default browser margin */
    padding: 0;
    /* Optional: Removes default browser padding */
}

/* Default Cursor for All Elements */
* {
    cursor: url("/assets/normal_select.cur"), default !important;
}

/* Custom Cursor for Canvas Elements */
canvas:hover,
a:hover,
button:hover,
.round-score-box.clickable:hover {
    cursor: url("/assets/link_select.cur"), default !important;
}

#hostOptionsContainer {
    display: none;
    /* It's initially hidden; you can toggle it to 'block' when needed */
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#hostOptionsContainer h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* Each row of options (label + input) */
.option-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

/* Labels for the inputs */
.option-row label {
    width: 120px;
    font-size: 16px;
    color: #555;
    margin-right: 10px;
}

/* Text inputs */
.option-row input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-options {
    display: flex;
    gap: 15px;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    cursor: pointer;
}

.radio-options input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #007BFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.radio-options input[type="radio"]:checked {
    background-color: #007BFF;
    border: 11px solid #007BFF;
}

.radio-options input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.radio-options input[type="radio"]:checked::before {
    opacity: 1;
}

/* Select (roundCount) */
#timePenalty,
#blurStrength,
#locationSet,
#roundCount,
#roundDuration {
    flex: 1;
    padding: 8px;
    margin-left: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

/* Host button inside hostOptionsContainer */
#hostOptionsContainer #finalHostGameButton {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

#hostOptionsContainer #finalHostGameButton:hover {
    background-color: #0056b3;
}

.main-container {
    display: flex;
    gap: 20px;
    /* width: 100%; <-- remove this */
    max-width: 1400px;
    margin: 20px auto;
    /* This centers it horizontally within the body */
    align-items: stretch;
    justify-content: center;
    /* optional, if you want to guarantee items are centered */
    /* padding: 20px; maybe keep or reduce as needed */
}

.chat-container {
    order: 3;
    /* Force it to the far right */
    min-width: 350px;
    width: 350px;
    /* make chat also wider for more space */
    max-height: 864px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 90vh;
    /* Make it take 75% of viewport height */
    justify-content: center;
    margin-top: auto;
    /* Helps with centering */
    margin-bottom: auto;
    /* Helps with centering */
}


.chat-messages {
    flex: 1;
    margin-bottom: 15px;
    border: 1px solid #ffffff;
    color: rgb(255, 255, 255);
    border-radius: 5px;
    padding: 10px;
    background-color: #333333;
    /* The wrapping rules: */
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-y: auto;
    overflow-x: hidden;
}


.chat-input {
    display: flex;
    gap: 10px;
}

#chatMessage {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#sendChat {
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#sendChat:hover {
    background: #218838;
}

/* Enhanced Game Section */
#gameSection {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px;
    /* reduce from 20px */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    order: 2;
}

/* Improved Button Styles */
button {
    background: linear-gradient(to bottom, #007BFF, #0056b3);
    border: 1px solid #004085 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.scores-column ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.scores-column ul li {
    margin-bottom: 8px;
    /* unchanged */
    padding: 8px 10px;
    /* unchanged */

    background-color: #333;
    /* dark background */
    color: #fff;
    /* light text for contrast */

    border-radius: 4px;
    /* unchanged */
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
    /* subtle inset shadow */

    /* Remove the text-shadow outlines */
    text-shadow: none;

    font-size: 23px;
    /* unchanged */
    line-height: 1.4;
    /* unchanged */
    font-weight: bold;
    border-bottom: none;
    /* unchanged */

    display: flex;
    justify-content: space-between;
    align-items: center;
    /* unchanged */
}

/* Canvas Styling */
canvas {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.scores-column .buttons-column {
    margin-top: auto;
    /* This pushes the button area to the bottom of the column */
}

/************************************************************/
/* Room List Container                                      */
/************************************************************/
#roomListContainer {
    display: none;
    max-width: 800px;
    width: 90%;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;

}

#roomListContainer h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

/************************************************************/
/* Host New Room Button (top button)                        */
/************************************************************/
#showHostButton {
    display: block;
    width: 25%;
    /* Less wide than container */
    max-width: 350px;
    /* Prevent getting too large */
    margin: 0 auto 20px;
    /* Center horizontally, add spacing below */
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;

    /* Match your original button gradient & styling */
    background: linear-gradient(to bottom, #007BFF, #0056b3);
    color: white;
    border: 1px solid #004085;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#showHostButton:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/************************************************************/
/* Room List & Individual Room Rows                         */
/************************************************************/
#roomList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fefefe;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Make text more readable overall */
    font-size: 16px;
    color: #333;
}

/************************************************************/
/* Room Info (spread out horizontally)                      */
/************************************************************/
.room-info {
    display: flex;
    flex: 1;
    /* Take up remaining space to push button to the right */
    justify-content: space-around;
    /* Spread details out horizontally */
    align-items: center;
    flex-wrap: wrap;
    /* Let them wrap on very narrow screens */
    gap: 20px;
    /* Spacing between items */
}

.room-info .detail {
    font-size: 16px;
    /* Slightly bigger text */
    color: #555;
    /* Darker color for clarity */
}

.room-info .detail strong {
    font-size: 17px;
    /* Make the room name stand out a bit */
    color: #222;
}

/************************************************************/
/* Join Button (similar style as your original)             */
/************************************************************/
.join-button {
    background: linear-gradient(to bottom, #007BFF, #0056b3);
    border: 1px solid #004085;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);

    /* Make it wider & center text */
    width: 120px;
    padding: 10px 0;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.join-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.infoContainer {
    width: 100%;
    /* Fill the parent's fixed width */
    box-sizing: border-box;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* The <details> itself */
details {
    display: block;
    width: 100%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #444;
    /* Let text wrap if it's long: */
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}

/* The summary line also wraps as needed */
details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    padding: 10px;
    border-radius: 5px;
    background: #ddd;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    white-space: normal;
}

/* The detail content list <ul> also wraps */
details ul {
    list-style-type: disc;
    margin-top: 10px;
    margin-left: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
    overflow-wrap: break-word;
    white-space: normal;
}

details summary:hover {
    background: #ccc;
}

details[open] summary {
    background: #bbb;
}

details summary::after {
    content: "\25BC";
    /* Default: closed */
    font-size: 18px;
    transition: transform 0.2s ease-in-out;
}

details[open] summary::after {
    transform: rotate(180deg);
    /* Rotate when open */
}

/* Animated expanding content */
details[open] ul {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul {
    list-style-type: disc;
    margin-top: 10px;
    margin-left: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.no-select {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari, Chrome */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Standard syntax */
}

#homeButton {
    position: fixed;
    top: 15px;
    left: 15px;
    padding: 20px 40px;
    font-size: 16px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2000;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
}

#homeButton:hover {
    background-color: rgba(0, 86, 179, 0.9);
    transform: scale(1.05);
}

#homeButton .home-icon {
    font-size: 20px;
    display: none;
}

#homeButton .home-text {
    display: inline;
}

#shareButton {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 20px 40px;
    font-size: 16px;
    background-color: rgba(40, 167, 69, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2000;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
}

#shareButton:hover {
    background-color: rgba(30, 126, 52, 0.95);
    transform: scale(1.05);
}

#dailyButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 44px);
    grid-template-rows: repeat(2, 34px);
    gap: 5px;
    justify-content: center;
    margin: 20px auto;
}

.color-box {
    width: 40px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

.selected {
    border: 6px solid black;
}

#map-selector {
    max-width: 600px;
    margin: 1em auto;
    font-family: sans-serif;
}

.map-group {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1em;
    overflow: hidden;
    font-size: 16px;
}

/* Style the summary area (the group header) */
.map-group summary {
    background: #f7f7f7;
    padding: 0.5em;
    cursor: pointer;
}

/* Style the container of the individual map checkboxes */
.map-items {
    padding: 0.5em 1em;
}

.map-items label {
    display: block;
    margin-bottom: 0.25em;
}

/* =============================================
   MOBILE STYLES
   ============================================= */

/* Mobile info tabs (Scores/Chat) - at TOP */
.mobile-tab-buttons {
    display: none;
    position: fixed;
    top: 0;
    left: 55px;
    right: 55px;
    z-index: 1500;
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 8px;
    gap: 8px;
    justify-content: center;
}

.mobile-tab-buttons button {
    flex: 1;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

.mobile-tab-buttons button.active {
    background: linear-gradient(to bottom, #28a745, #1e7e34);
    border-color: #1c7430 !important;
}

/* Mobile action buttons (Lock In, Start, Next, Toggle) - at BOTTOM */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 8px;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.mobile-action-bar button {
    flex: 1;
    max-width: 160px;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
}

/* Toggle view button styling */
#mobileToggleView {
    background: linear-gradient(to bottom, #17a2b8, #117a8b);
    border-color: #10707f !important;
}

/* Lock in button styling */
#mobileLockButton {
    background: linear-gradient(to bottom, #28a745, #1e7e34);
    border-color: #1c7430 !important;
}

/* Start/Next button styling */
#mobileStartGameButton,
#mobileNextButton {
    background: linear-gradient(to bottom, #ffc107, #d39e00);
    border-color: #c69500 !important;
    color: #000;
}

/* Mobile overlay panels */
.mobile-panel-overlay {
    display: none !important;
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 70px; /* Fallback - JS will set exact height based on action bar */
    z-index: 1400;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px;
    overflow-y: auto;
}

.mobile-panel-overlay.active {
    display: flex !important;
    flex-direction: column;
}

.mobile-panel-overlay h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
}

/* Mobile chat panel specific layout */
#mobileChatPanel .chat-messages {
    flex: 1;
    margin-bottom: 10px;
    min-height: 200px;
}

#mobileChatPanel .chat-input {
    flex-shrink: 0;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

#mobileChatMessage {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#mobileSendChat {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#mobileSendChat:hover {
    background-color: #45a049;
}

/* Mobile scores panel layout */
#mobileScoresPanel ul {
    flex: 1;
    overflow-y: auto;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#mobileScoresPanel ul li {
    margin-bottom: 8px;
    padding: 10px 12px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.mobile-panel-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none !important;
    color: #333;
    padding: 5px 10px;
}

/* Mobile media query */
@media (max-width: 1100px) {
    /* Mobile elements are shown via JavaScript when in room */

    /* Hide desktop sidebars */
    .scores-column,
    .chat-container {
        display: none !important;
    }

    /* Full-screen game section */
    .main-container {
        padding: 0;
        margin: 0;
        gap: 0;
        max-width: 100%;
        width: 100%;
    }

    #gameSection {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    /* Full-screen canvas */
    #worldMapCanvas {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        outline: none;
    }

    /* Adjust timer for mobile - below top bar */
    #roundTimer {
        font-size: 16px;
        padding: 6px 10px;
        top: 50px;
        max-width: 80%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Home button - icon only on mobile, top left */
    #homeButton {
        padding: 8px 0;
        width: 44px;
        font-size: 18px;
        top: 6px;
        left: 5px;
        z-index: 1600;
        text-align: center;
    }

    #homeButton .home-icon {
        display: inline;
        font-size: inherit;
    }

    #homeButton .home-text {
        display: none;
    }

    /* Share button on mobile - top right, same size as home */
    #shareButton {
        padding: 8px 0;
        width: 44px;
        font-size: 18px;
        top: 6px;
        right: 5px;
        z-index: 1600;
        text-align: center;
    }

    /* Toast on mobile - above action bar */
    #toast {
        bottom: 80px;
        font-size: 18px;
        padding: 8px 15px;
    }

    /* Room list container mobile */
    #roomListContainer {
        width: 95%;
        margin: 10px auto;
        padding: 10px;
    }

    #showHostButton {
        width: 80%;
    }

    .room-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .room-info {
        flex-direction: column;
        gap: 5px;
    }

    /* Username section mobile */
    #usernameSection {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
        margin: 10px auto !important;
    }

    .color-grid {
        grid-template-columns: repeat(8, 36px);
        grid-template-rows: repeat(2, 28px);
        gap: 3px;
    }

    .color-box {
        width: 32px;
        height: 24px;
    }

    /* Prevent pull-to-refresh but allow scrolling in menus */
    body, html {
        overscroll-behavior-y: contain;
    }

    /* Only hide overflow when in-game (controlled by JS class) */
    body.in-game, html.in-game {
        overflow: hidden;
    }

    /* Hide main-box background stuff */
    #main-box {
        padding: 0;
        margin: 0;
    }
}
