/* ================= MENU LAYOUT ================= */
#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    color: var(--accent-color);
    z-index: 10;
    text-shadow: 0 0 4px rgba(255, 150, 50, 0.15);
    box-shadow: inset 0 0 20px rgba(255, 150, 50, 0.08);
    border-top: 1px solid rgba(255, 150, 50, 0.1);
    border-bottom: 1px solid rgba(255, 150, 50, 0.1);
    font-size: 1.25rem;
}

.menu-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

/* ================= MENU BUTTONS ================= */
button {
    background-color: rgba(255, 240, 200, 0.05);
    border: 1px solid rgba(255, 150, 50, 0.25);
    color: var(--accent-color);
    font-weight: 400;
    border-radius: 8px;
    padding: 10px 18px;
    margin-top: 1rem;
    transition: all 0.1s ease;
    font-size: 1rem;
}

button:hover {
    background-color: rgba(255, 150, 50, 0.1);
    border-color: rgba(255, 180, 80, 0.3);
    transform: scale(1.05);
    cursor: pointer;
}

/* ================= STATS POPUP ================= */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-dark);
    color: var(--accent-color);
    border-radius: 12px;
    padding: 30px;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px var(--highlight-light);
    border: 1px solid rgba(255, 150, 50, 0.1);
    z-index: 999;
    backdrop-filter: blur(6px);
}

.popup-content {
    text-align: center;
}

#summary-stats {
    padding: 0;
    margin-bottom: 1.5rem;
}

#summary-stats li {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 1rem;
}

/* ================= STATS KEYBOARD ================= */
.keyboard {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.keyboard-row {
    display: flex;
    gap: 1rem;
}

.keyboard-key {
    --color: grey;

    width: 15px;
    border: 2px solid rgba(255, 150, 50, 0.2);
    border-radius: 6px;
    padding: 5px;
    background-color: var(--color);
    transition: all 0.1s ease;
    cursor: default;
    position: relative;
    color: var(--accent-color);
}

.keyboard-key:hover {
    border: 2px solid var(--accent-color);
}

/* ================= STATS KEYBOARD TOOLTIP ================= */
.keyboard-key .tooltip {
    text-transform: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 200px;
    pointer-events: none;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 1rem;
}

.keyboard-key:hover .tooltip:not(:empty) {
    opacity: 1;
}

.tooltip-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
}

.tooltip-grid div:nth-child(odd) {
    text-align: left;
    opacity: 0.9;
}

.tooltip-grid div:nth-child(even) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ================= SLIDERS ================= */
#fire-hunger, #game-duration {
    width: 250px;
    appearance: none;
    height: 6px;
    background: rgba(255, 150, 50, 0.05);
    border-radius: 4px;
    outline: none;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid rgba(255, 150, 50, 0.1);
}

/* ================= SLIDER THUMBS ================= */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(160, 90, 30);
    box-shadow: 0 0 6px var(--highlight-light);
    transition: transform 0.1s ease, background 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(160, 90, 30);
    box-shadow: 0 0 6px var(--highlight-light);
    transition: transform 0.1s ease, background 0.2s ease;
}

/* ================= SLIDER HOVER ================= */
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: rgb(255, 190, 100);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: rgb(255, 190, 100);
}

/* ================= SLIDER VALUE DISPLAY ================= */
#fire-hunger-value, #game-duration-value {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    text-shadow: 0 0 3px var(--highlight-light);
    margin-top: 6px;
    text-align: center;
}