/* ============================================================
   YVOKE: Canvas Container Contract
   Extracted from base.html inline styles
   ============================================================ */

[data-canvas-variant] {
    position: relative;
    overflow: hidden;
}

[data-canvas-variant] canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

[data-canvas-variant] > *:not(canvas) {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    [data-canvas-variant] canvas {
        transition: none;
        animation: none;
    }
}

[data-canvas-variant] .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   PHASE 2 DEV-ONLY: settings popup styles
   Loaded site-wide via base.html (canvas.css is in Phase 1 link tags)
   but the popup only renders when ?tune=1 is in the URL.
   REMOVE BEFORE PHASE 4 GA.
   ============================================================ */

#yvoke-tune-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 280px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    z-index: 9999;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 0.75rem 1rem 1.2rem;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

#yvoke-tune-panel label {
    display: block;
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

#yvoke-tune-panel input[type=range] {
    width: 100%;
    margin-top: 0.25rem;
    accent-color: #A46F4F;
}

#yvoke-tune-panel .ctrl-section {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #EAE6CE;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 0 0.3rem;
    margin-top: 0.8rem;
}

#yvoke-tune-panel .ctrl-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

/* Hide the panel entirely on print and reduced-motion contexts.
   Tom's review is interactive; print should not surface dev UI. */
@media print, (prefers-reduced-motion: reduce) {
    #yvoke-tune-panel { display: none !important; }
}
