@font-face {
  font-family: 'Pixelify Sans';
  src: url('assets/fonts/PixelifySans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

* {
  font-family: 'Pixelify Sans', monospace, sans-serif;
}

/* Alternative approach using html/body selectors */
html, body {
  font-family: 'Pixelify Sans', monospace, sans-serif;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffff00;
    font-size: 12px;
    font-weight: 400;
    background: rgba(0,0,0,0.9);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.2);
    text-shadow: 0 0 3px rgba(255, 255, 0, 0.6);
}

.audio-controls {
    position: absolute;
    bottom: 20px;
    right: 200px;
    background: rgba(0,0,0,0.9);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #888;
    color: #fff;
    font-size: 10px;
    min-width: 150px;
}

.audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.audio-item span {
    min-width: 40px;
    font-size: 10px;
}

.audio-item input[type="range"] {
    width: 80px;
    height: 4px;
    background: #333;
    outline: none;
    border-radius: 2px;
}

.audio-item input[type="range"]::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.audio-item input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#muteButton {
    background: none;
    border: 1px solid #888;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 4px;
    width: 100%;
}

#muteButton:hover {
    background: rgba(255,255,255,0.1);
}body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    color: white;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    transition: filter 0.1s ease;
}

#gameCanvas {
    display: block;
}

.ui {
    position: absolute;
    top: 20px;
    right: 150px;
    font-size: 16px;
    font-weight: 700;
    background: rgba(0,0,0,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    display: flex;
    gap: 14px;
}

.ui__items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.ui__items__line > img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    aspect-ratio: 1;
    opacity: 0.8;
}

.ui__items__line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ui__items__line > span {
    margin-right: -10px;
}

.guide {
    position: absolute;
    top: 19px;
    left: 14px;
    font-weight: 700;
    opacity: 0.4;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.inventory {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(0,0,0,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    min-width: 80px!important;
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.8);
}

.inventory__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.inventory__heading__backpack {
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    display: block;
    opacity: 0.8;
}

.inventory__heading__text {
    font-size: 24px;
    margin-bottom: 0!important;
    margin-top: 1px;
}

.inventory > .item {
    display: flex;
    gap: 8px;
    font-size: 20px;
    margin: 4px 0 0 0 !important;
    line-height: 1rem;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffff00;
    font-size: 12px;
    font-weight: 400;
    background: rgba(0,0,0,0.9);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.2);
    text-shadow: 0 0 3px rgba(255, 255, 0, 0.6);
}

.item {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    padding: 2px 0;
}

.speed-meter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0,0,0,0.9);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    color: #00ff00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.6);
}

.speed-bar {
    width: 120px;
    height: 4px;
    background: #001100;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.3);
}

.speed-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    transition: width 0.1s ease;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #fff;
}