body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #222;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
}

#status-line {
    font-size: 1.2rem;
    color: #94a3b8;
}

#difficulty-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    pointer-events: auto; /* Ensure clickable */
}

#difficulty-select {
    background: #1e293b;
    color: #fbbf24;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    pointer-events: none;
}

#ui-layer header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

#rpm-gauge {
    font-size: 24px;
    font-weight: bold;
    color: #0ff;
}

#status {
    font-size: 16px;
    color: #aaa;
    margin-top: 5px;
}

/* Tutorial & Status Panel */
#tutorial-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 280px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    z-index: 100;
    padding: 10px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.game-info {
    font-family: monospace;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-info span {
    color: #fbbf24;
}

#tutorial-panel details {
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
    display: block; /* Force consistent block layout */
}

#tutorial-panel summary {
    font-size: 0.75rem;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0; /* More balanced padding */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    outline: none; /* Remove focus ring for cleaner look */
}

/* Explicitly hide all browser-default markers */
#tutorial-panel summary::-webkit-details-marker,
#tutorial-panel summary::marker {
    display: none;
}

#tutorial-panel summary:hover {
    color: #fbbf24;
}

#tutorial-panel summary:after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 8px; /* Slightly more air */
    transition: transform 0.2s ease;
}

#tutorial-panel details[open] summary:after {
    content: '▲';
}

#tutorial-panel p, #tutorial-panel ul {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #cbd5e1;
    margin-top: 6px;
    margin-bottom: 6px;
}

#tutorial-panel ul {
    padding-left: 14px;
}

#tutorial-panel li {
    margin-bottom: 2px;
}

#tutorial-panel strong {
    color: #fff;
}

