/* =============================================================================
   RAFT SURVIVAL GAME - MAIN STYLESHEET
   =============================================================================
   UI styling for inventory, build mode, notifications and game interface
   ============================================================================= */

/* =============================================================================
   BASE STYLES AND CANVAS
   ============================================================================= */

body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
}

/* =============================================================================
   CROSSHAIR AND RETICLE
   ============================================================================= */

#reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    pointer-events: none; 
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: none; 
    font-weight: 300;
}

/* =============================================================================
   INVENTORY SYSTEM STYLES
   ============================================================================= */

#inventory-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#inventory-grid-container {
    background-color: rgba(20, 25, 35, 0.95);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 85%;
    max-height: 80%;
    overflow-y: auto;
    color: #e8e8e8;
}

#inventory-grid-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.inventory-slot {
    width: 80px;
    height: 80px;
    background-color: rgba(40, 45, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default; 
    overflow: hidden;
    padding: 8px;
    transition: all 0.2s ease;
}

.inventory-slot:hover {
    background-color: rgba(60, 65, 75, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.item-icon {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 4px;
}

.item-name {
    font-size: 10px;
    color: #b8b8b8;
    text-align: center;
    word-break: break-word; 
    line-height: 1.2;
    font-weight: 400;
}

.item-count {
    background-color: rgba(0, 120, 255, 0.9);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    text-align: center;
}

/* Compact Inventory Mode Styles */
#inventory-ui.compact-inventory-mode {
    display: block !important;
    position: fixed;
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, rgba(15, 20, 30, 0.95), rgba(25, 35, 50, 0.95));
    backdrop-filter: blur(12px);
    border: 2px solid rgba(100, 150, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(100, 150, 255, 0.2);
}

#inventory-ui.compact-inventory-mode #inventory-grid-container {
    background-color: transparent;
    padding: 20px;
    border: none;
    box-shadow: none;
    min-width: 280px;
    max-width: 320px;
    max-height: 300px;
    color: #ffffff;
}

#inventory-ui.compact-inventory-mode #inventory-grid-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#inventory-ui.compact-inventory-mode #inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px;
}

#inventory-ui.compact-inventory-mode .inventory-slot {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(40, 50, 70, 0.9), rgba(60, 70, 90, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    overflow: hidden;
    padding: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#inventory-ui.compact-inventory-mode .inventory-slot:hover {
    background: linear-gradient(135deg, rgba(60, 70, 90, 1), rgba(80, 90, 110, 1));
    border-color: rgba(100, 150, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(100, 150, 255, 0.3);
}

#inventory-ui.compact-inventory-mode .item-icon {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#inventory-ui.compact-inventory-mode .item-name {
    font-size: 9px;
    color: #e0e0e0;
    text-align: center;
    word-break: break-word;
    line-height: 1.1;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#inventory-ui.compact-inventory-mode .item-count {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-shadow: none;
}

/* Consumables Inventory Mode Styles */
#inventory-ui.consumables-inventory-mode {
    display: flex !important;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

/* Storage Inventory Mode Styles */
#inventory-ui.storage-inventory-mode {
    display: flex !important;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.95), rgba(20, 30, 45, 0.95));
    backdrop-filter: blur(16px);
    border: 2px solid rgba(100, 150, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(100, 150, 255, 0.3);
}

#inventory-ui.storage-inventory-mode #inventory-grid-container {
    background: linear-gradient(135deg, rgba(15, 25, 40, 0.9), rgba(25, 40, 60, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    min-width: 1200px;
    max-width: 95vw;
    width: auto;
    overflow: hidden;
}

#inventory-ui.storage-inventory-mode #inventory-grid-container h2 {
    background: linear-gradient(90deg, #4fc3f7, #29b6f6, #03a9f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    text-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
    letter-spacing: 2px;
}

.storage-sections-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    min-height: 400px;
}

.storage-section {
    background: linear-gradient(135deg, rgba(30, 45, 65, 0.95), rgba(40, 60, 85, 0.95));
    border: 2px solid rgba(100, 150, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 450px;
    max-width: 550px;
    overflow: hidden;
}

.storage-section:hover {
    border-color: rgba(100, 150, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

.storage-section h3 {
    color: #ffffff;
    font-size: 1.6em;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #81c784, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    min-height: 300px;
    padding: 16px;
    width: 100%;
    justify-content: center;
    justify-items: center;
    align-items: start;
    overflow: hidden;
    place-items: center;
}

.storage-slot {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(40, 60, 80, 0.9), rgba(60, 80, 100, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 8px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    margin: 0 auto;
}

.storage-slot .item-icon {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.storage-slot .item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    object-position: center;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.storage-slot .item-name {
    font-size: 10px;
    color: #e0e0e0;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-slot .item-count {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.storage-slot:hover {
    background: linear-gradient(135deg, rgba(60, 80, 100, 1), rgba(80, 100, 120, 1));
    border-color: rgba(100, 150, 255, 0.8);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(100, 150, 255, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.empty-storage-message {
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 16px;
    padding: 60px 20px;
    background: rgba(20, 30, 45, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.storage-close-button {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.storage-close-button:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
}

/* =============================================================================
   BUILD MODE INTERFACE
   ============================================================================= */

#build-mode-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 20px;
    background-color: rgba(20, 25, 35, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 145;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#build-mode-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background-color: rgba(20, 25, 35, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 150;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.build-text-item-name {
    color: #ffffff;
    font-weight: 600;
}

.build-text-cost {
    color: #b8b8b8;
    font-weight: 400;
}

.build-text-controls-cycle {
    color: #ff6b6b;
    font-weight: 500;
}

.build-text-controls-rotate {
    color: #4ecdc4;
    font-weight: 500;
}

.build-text-controls-delete {
    color: #ff9f43;
    font-weight: 500;
}

#build-mode-hint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 20px;
    background-color: rgba(20, 25, 35, 0.8);
    backdrop-filter: blur(8px);
    color: #b8b8b8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: 140;
    display: block;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   BUILD MENU SYSTEM
   ============================================================================= */

#build-menu {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    padding: 12px;
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    width: auto;
    max-width: 90vw;
    height: 80px;
    z-index: 160;
    box-shadow: none;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

#build-menu::-webkit-scrollbar {
    display: none; 
}

.build-menu-item {
    width: 64px;
    height: 64px;
    background: rgba(25, 30, 40, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    flex-shrink: 0;
    padding: 4px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.build-menu-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    background: rgba(35, 40, 50, 0.95);
}

.build-menu-item.selected {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    background: rgba(0, 255, 136, 0.12);
    transform: translateY(-1px);
}

/* Category-based color coding */
.build-menu-item[data-item-key="plank"], 
.build-menu-item[data-item-key="stonePlatform"], 
.build-menu-item[data-item-key="dirtPlatform"] {
    border-color: rgba(160, 120, 80, 0.8);
}

.build-menu-item[data-item-key="plank"]:hover, 
.build-menu-item[data-item-key="stonePlatform"]:hover, 
.build-menu-item[data-item-key="dirtPlatform"]:hover {
    border-color: rgba(200, 150, 100, 1);
    box-shadow: 0 4px 16px rgba(160, 120, 80, 0.4);
}

.build-menu-item[data-item-key="campfire"], 
.build-menu-item[data-item-key="chair"], 
.build-menu-item[data-item-key="table"],
.build-menu-item[data-item-key="barrel"],
.build-menu-item[data-item-key="box"],
.build-menu-item[data-item-key="picnicBlanket"] {
    border-color: rgba(255, 140, 70, 0.8);
}

.build-menu-item[data-item-key="campfire"]:hover, 
.build-menu-item[data-item-key="chair"]:hover, 
.build-menu-item[data-item-key="table"]:hover,
.build-menu-item[data-item-key="barrel"]:hover,
.build-menu-item[data-item-key="box"]:hover,
.build-menu-item[data-item-key="picnicBlanket"]:hover {
    border-color: rgba(255, 170, 100, 1);
    box-shadow: 0 4px 16px rgba(255, 140, 70, 0.4);
}

.build-menu-item[data-item-key="glowingOrb"], 
.build-menu-item[data-item-key="glowingCube"], 
.build-menu-item[data-item-key="digitalClock"],
.build-menu-item[data-item-key="skyController"],
.build-menu-item[data-item-key="radio"],
.build-menu-item[data-item-key="voidBox"],
.build-menu-item[data-item-key="moai"],
.build-menu-item[data-item-key="tinyMoai"] {
    border-color: rgba(140, 100, 255, 0.8);
}

.build-menu-item[data-item-key="glowingOrb"]:hover, 
.build-menu-item[data-item-key="glowingCube"]:hover, 
.build-menu-item[data-item-key="digitalClock"]:hover,
.build-menu-item[data-item-key="skyController"]:hover,
.build-menu-item[data-item-key="radio"]:hover,
.build-menu-item[data-item-key="voidBox"]:hover,
.build-menu-item[data-item-key="moai"]:hover,
.build-menu-item[data-item-key="tinyMoai"]:hover {
    border-color: rgba(170, 130, 255, 1);
    box-shadow: 0 4px 16px rgba(140, 100, 255, 0.4);
}

.build-menu-item[data-item-key="RedPlant"], 
.build-menu-item[data-item-key="GreenPlant"], 
.build-menu-item[data-item-key="BluePlant"] {
    border-color: rgba(100, 200, 120, 0.8);
}

.build-menu-item[data-item-key="RedPlant"]:hover, 
.build-menu-item[data-item-key="GreenPlant"]:hover, 
.build-menu-item[data-item-key="BluePlant"]:hover {
    border-color: rgba(130, 220, 150, 1);
    box-shadow: 0 4px 16px rgba(100, 200, 120, 0.4);
}

.build-menu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2px;
}

.build-menu-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.build-menu-name {
    font-size: 9px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    line-height: 1;
    word-break: keep-all;
    max-width: 100%;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
}

.build-menu-cost {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 6px;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: none;
}

/* =============================================================================
   NOTIFICATION SYSTEMS
   ============================================================================= */

#collection-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background-color: rgba(20, 25, 35, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 250;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    text-align: center;
}

#interaction-hint {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background-color: rgba(20, 25, 35, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    z-index: 170;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    text-align: center;
}

/* =============================================================================
   PLAYER STATS BARS
   ============================================================================= */

#player-stats {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(20, 25, 35, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e8e8e8;
    min-width: 200px;
    z-index: 170;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.stat-bar:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    min-width: 50px;
    color: #ffffff;
}

.stat-bar-container {
    flex: 1;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.health-bar {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e8e 100%);
}

.hunger-bar {
    background: linear-gradient(90deg, #ff9f43 0%, #ffb347 100%);
}

.thirst-bar {
    background: linear-gradient(90deg, #4ecdc4 0%, #6bd6cc 100%);
}

.stat-value {
    font-size: 11px;
    font-weight: 500;
    min-width: 30px;
    text-align: right;
    color: #ffffff;
}

/* =============================================================================
   PAUSE MENU SYSTEM
   ============================================================================= */

#pause-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pause-menu-container {
    background-color: rgba(20, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    min-width: 500px;
    max-width: 80%;
    max-height: 90%;
    overflow-y: auto;
    color: #e8e8e8;
    text-align: center;
}

.pause-menu-container h2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: 1px;
}

.pause-menu-container h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 16px;
    font-weight: 500;
}

.pause-menu-section {
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background-color: rgba(30, 35, 45, 0.6);
}

.pause-menu-section input {
    width: 280px;
    padding: 12px;
    margin: 12px;
    background-color: rgba(40, 45, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.pause-menu-section input:focus {
    border-color: rgba(0, 120, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.2);
    outline: none;
}

.pause-menu-button {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px;
    text-transform: none;
}

.pause-menu-button:hover {
    background: linear-gradient(135deg, #106ebe 0%, #005a9e 100%);
    transform: translateY(-1px);
}

.pause-menu-button.resume-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    margin-top: 24px;
    font-size: 16px;
    padding: 16px 32px;
    font-weight: 600;
}

.pause-menu-button.resume-button:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
}

.available-saves {
    margin-top: 12px;
    color: #b8b8b8;
    font-size: 12px;
    font-style: italic;
}

.keybind-list {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.keybind-item {
    color: #e8e8e8;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.key {
    background-color: rgba(40, 45, 55, 0.8);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    margin-right: 12px;
    min-width: 70px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
}

/* Storage specific buttons */
.consume-button {
    background: linear-gradient(135deg, #10ac84 0%, #00d2d3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.consume-button:hover {
    background: linear-gradient(135deg, #00d2d3 0%, #0abde3 100%);
    transform: translateY(-1px);
}

.storage-close-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    text-transform: none;
}

.storage-close-button:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    transform: translateY(-1px);
}