* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
    touch-action: none;
}

body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    max-height: 100vh;
    max-width: 177.78vh; /* 16:9 ratio */
    background-color: #000;
    box-shadow: 0 0 30px rgba(0,0,0,1);
    overflow: hidden;
}

#start-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-image: url('images/bg.jpeg');
    background-size: cover;
    background-position: center;
}

#start-screen h1 {
    color: white;
    font-size: 5vmin;
    margin-bottom: 5vmin;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    text-align: center;
}

button {
    padding: 2vmin 5vmin;
    font-size: 3vmin;
    border: none;
    border-radius: 1vmin;
    background-color: #fca311;
    color: #14213d;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 0.5vmin 1vmin rgba(0,0,0,0.5);
    outline: none;
}

button:active {
    transform: scale(0.95);
    background-color: #e5e5e5;
}

button:disabled {
    background-color: #888;
    color: #ddd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#mute-btn {
    position: absolute;
    top: 2vmin;
    right: 2vmin;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 0.3vmin solid #fca311;
    border-radius: 50%;
    width: 7vmin;
    height: 7vmin;
    font-size: 3.5vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; 
    color: white;
}

#game-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
}

#scene-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    pointer-events: none;
}

#ui-panel {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: 30%; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 2vmin;
    border-top: 0.3vmin solid #fca311;
}

#story-text {
    color: white;
    font-size: 2.8vmin;
    text-align: center;
    line-height: 1.4;
    width: 90%;
    min-height: 8vmin; 
}

#clicker-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vmin;
}

#progress-bar-container {
    width: 50%;
    height: 3vmin;
    background-color: #333;
    border-radius: 2vmin;
    border: 0.3vmin solid #fff;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #e63946;
    transition: width 0.1s linear;
}

#action-btn {
    background-color: #e63946;
    color: white;
    font-size: 3.5vmin;
    padding: 1.5vmin 8vmin;
    border-radius: 1.5vmin;
}

.hidden {
    display: none !important;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    100% { transform: translate(-1px, -2px) rotate(-1deg); }
}

.shake-animation {
    animation: shake 0.2s;
    animation-iteration-count: 1;
}