* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    transition: background-color 80ms linear;
}

#overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-family: sans-serif;
    text-align: center;
    gap: 0.75rem;
    pointer-events: none;
}

#status {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

#debug {
    font-size: 0.72rem;
    opacity: 0.55;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

#phase-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* -------------------------------------------------------------------------
   Ovládací panel (tlačítka scénářů + fullscreen)
   Umístěn pevně v dolní části obrazovky, pointer-events povoleny.
------------------------------------------------------------------------- */
#controls {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0));
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.scenario-btn,
#fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;          /* doporučené min touch target */
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    font-family: sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 150ms, color 150ms, border-color 150ms;
}

.scenario-btn:active,
#fullscreen-btn:active {
    background: rgba(255,255,255,0.18);
}

.scenario-btn.active {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    font-weight: bold;
}

#fullscreen-btn {
    padding: 0.4rem 0.75rem;
    flex-shrink: 0;
}

#fullscreen-btn.active {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
