body {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

input[type="range"] { accent-color: #0f172a; }

.tab-content { display: none; }
.tab-content.active { display: flex; flex-direction: column; }
.desktop-panel { display: none; }
@media (min-width: 768px) {
    .desktop-panel.active { display: flex; flex-direction: column; }
}

.cheatsheet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cheatsheet-list li {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    font-size: 0.7rem;
    line-height: 1.35;
}
.cheatsheet-list .mark {
    color: #4ade80;
    font-weight: 700;
    flex: none;
}

#status-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(241, 245, 249, 0.72);
    z-index: 15;
    pointer-events: none;
}
#status-overlay.visible { display: flex; }
#status-overlay span {
    background: #0f172a;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.rotate-btn {
    flex: 1;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}
.rotate-btn:hover { background: #cbd5e1; }
