/* =====================================================
   KOMNATY PANA GRIMMA - Core Stylesheet
   Společné styly pro všechny komnaty
   ===================================================== */

/* ----- RESET & BASE ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Barevná paleta */
    --color-bg: #0A0806;
    --color-sepia: #3D2914;
    --color-sepia-light: #5A4A3A;
    --color-fire: #E85D04;
    --color-fire-bright: #E85D04;
    --color-fire-glow: rgba(196, 77, 3, 0.4);
    --color-green: #4A7C23;
    --color-green-glow: rgba(74, 124, 35, 0.5);
    --color-bone: #F5F0E6;
    --color-moon: #4A6FA5;
    --color-text: #E5DDD5;
    --color-text-dim: rgba(229, 221, 213, 0.6);

    /* Typografie */
    --font-display: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;

    /* Timing */
    --transition-slow: 0.8s ease;
    --transition-medium: 0.4s ease;
    --transition-fast: 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
}

/* Systémový kurzor se skryje až po aktivaci zón */
.zones-active,
.zones-active *,
.zones-active .interactive-zone {
    cursor: none !important;
}

/* ----- CUSTOM CURSOR ----- */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor.cursor-active {
    opacity: 1;
}

.cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-bone);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-bone);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.5;
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--color-fire);
    opacity: 1;
}

body.cursor-hover .cursor-dot {
    background: var(--color-fire);
    transform: translate(-50%, -50%) scale(1.5);
}

/* ----- PRELOADER ----- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.preloader-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.preloader-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-bone);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--color-fire-glow);
}

.preloader-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.preloader-quote {
    font-style: italic;
    color: var(--color-fire);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.enter-button {
    background: transparent;
    border: 1px solid var(--color-bone);
    color: var(--color-bone);
    padding: 1rem 3rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.enter-button:hover {
    background: var(--color-fire);
    border-color: var(--color-fire);
    color: var(--color-bg);
    box-shadow: 0 0 30px var(--color-fire-glow);
}

.preloader-hint {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.preloader-hint .hint-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.preloader-hint .hint-desktop {
    display: none;
}

@media (min-width: 769px) {
    .preloader-hint .hint-desktop {
        display: inline;
    }
}

/* ----- FULLSCREEN BUTTON ----- */
.fullscreen-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(10, 8, 6, 0.6);
    border: 1px solid rgba(229, 221, 213, 0.2);
    border-radius: 4px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.fullscreen-btn:hover {
    opacity: 0.8;
    background: rgba(10, 8, 6, 0.8);
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-dim);
    fill: none;
    stroke-width: 2;
}

.fullscreen-btn .f11-label {
    position: absolute;
    font-size: 0.5rem;
    color: var(--color-text-dim);
    font-family: var(--font-body);
}

/* Skrýt na mobilu */
@media (max-width: 768px) {
    .fullscreen-btn {
        display: none;
    }
}

/* Skrýt při fullscreenu */
:fullscreen .fullscreen-btn,
:-webkit-full-screen .fullscreen-btn,
:-moz-full-screen .fullscreen-btn {
    display: none;
}

/* ----- KOMNATA LAYOUT ----- */
.komnata {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--color-bg);
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer-interactive {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Zóny se aktivují až po intro */
.zones-active .layer-interactive {
    pointer-events: auto;
    opacity: 1;
}

/* ----- SCENE IMAGE & VIDEO ----- */
.scene-image,
.scene-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1) saturate(0.9);
    transition: opacity 1.5s ease;
}

.scene-fallback {
    z-index: 2;
    opacity: 1;
}

.scene-fallback.hidden {
    opacity: 0;
    pointer-events: none;
}

.scene-video {
    z-index: 1;
    opacity: 0;
}

.scene-video.loaded {
    opacity: 1;
}

.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 3;
    pointer-events: none;
}

/* Breathing efekt pouze na fallback obrázek (když video nehraje) */
.komnata.active .scene-fallback:not(.hidden) {
    animation: subtleBreathing 8s ease-in-out infinite;
}

@keyframes subtleBreathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ----- INTERACTIVE ZONES (základní) ----- */
.interactive-zone {
    position: absolute;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.zone-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all var(--transition-medium);
    pointer-events: none;
    z-index: 100;
}

.interactive-zone:hover .zone-highlight {
    border: 2px solid rgba(232, 93, 4, 0.5);
    box-shadow: inset 0 0 30px rgba(232, 93, 4, 0.2);
}

/* Touch active state (pro mobily) */
.interactive-zone.touch-active .zone-highlight {
    border-color: rgba(232, 93, 4, 0.8) !important;
    border-width: 2px !important;
    box-shadow: inset 0 0 40px rgba(232, 93, 4, 0.4), 0 0 20px rgba(232, 93, 4, 0.3) !important;
}

/* Zóny s data-secret - tenčí zelený rámeček */
.interactive-zone[data-secret="true"]:hover .zone-highlight,
.interactive-zone[data-secret="true"].touch-active .zone-highlight {
    border: 1px solid rgba(74, 124, 35, 0.7) !important;
    box-shadow: inset 0 0 20px rgba(74, 124, 35, 0.15), 0 0 10px rgba(74, 124, 35, 0.2) !important;
}

/* ----- VIGNETTE & OVERLAYS ----- */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 55% 45%, transparent 35%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.32) 100%);
    pointer-events: none;
}

.vignette-breathing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Statické (silnější) pozadí — animuje se pouze opacity (levnější, bez repaintu gradientu) */
    background: radial-gradient(ellipse at 55% 45%, transparent 30%, rgba(0, 0, 0, 0.14) 65%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
    animation: vignetteBreathe 8s ease-in-out infinite;
}

@keyframes vignetteBreathe {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.darkness-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    animation: darknessFlicker 12s ease-in-out infinite;
}

@keyframes darknessFlicker {
    0%, 100% { opacity: 0; }
    10% { opacity: 0; }
    11% { opacity: 0.4; }
    12% { opacity: 0; }
    30% { opacity: 0; }
    31% { opacity: 0.2; }
    33% { opacity: 0.3; }
    34% { opacity: 0; }
    60% { opacity: 0; }
    61% { opacity: 0.15; }
    62% { opacity: 0; }
    85% { opacity: 0; }
    86% { opacity: 0.25; }
    87% { opacity: 0.1; }
    88% { opacity: 0.3; }
    89% { opacity: 0; }
}

.film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grainShift 0.5s steps(10) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, 1%); }
    80% { transform: translate(0, -1%); }
    90% { transform: translate(1%, 1%); }
}

/* ----- NARRATIVE PANEL ----- */
.narrative-panel {
    position: fixed;
    bottom: 0.5%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95%;
    padding: 1.5rem 2.5rem;
    background: rgba(10, 8, 6, 0.9);
    border: 1px solid rgba(232, 93, 4, 0.3);
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.narrative-panel.visible {
    opacity: 1;
    visibility: visible;
}

/* Pozice nahoře pro zóny v dolní polovině */
.narrative-panel.position-top {
    bottom: auto;
    top: 2%;
}

.narrative-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    max-width: 60ch; /* dlouhé narativy se zalomí, nepřetečou panel */
}

/* ----- INTRO TEXT ----- */
.intro-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-text.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
}

.komnata .layer-interactive {
    transition: opacity 0.5s ease;
}

.intro-line {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    text-shadow:
        0 0 10px rgba(10, 8, 6, 0.9),
        0 0 20px rgba(10, 8, 6, 0.8),
        0 0 40px rgba(10, 8, 6, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Řádek se zobrazí, když má přímo třídu .visible (řízeno JS) */
.intro-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Emphasis styl pro poslední řádek */
.intro-line.emphasis {
    color: var(--color-fire);
}

/* ----- OUTRO TEXT ----- */
.outro-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0.95);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
}

.outro-text.visible {
    opacity: 1;
    visibility: visible;
}

.outro-line {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.outro-line.emphasis {
    font-size: 2.5rem;
    color: var(--color-fire);
    margin-top: 1rem;
}

.outro-text.visible .outro-line {
    animation: fadeInUp 0.8s ease forwards;
}

.outro-text.visible .outro-line:nth-child(1) { animation-delay: 0.5s; }
.outro-text.visible .outro-line:nth-child(2) { animation-delay: 1.5s; }
.outro-text.visible .outro-line:nth-child(3) { animation-delay: 2.5s; }
.outro-text.visible .outro-line:nth-child(4) { animation-delay: 4s; }
.outro-text.visible .outro-line:nth-child(5) { animation-delay: 5s; }

.collector-quote {
    margin-top: 4rem;
    text-align: center;
    opacity: 0;
}

.outro-text.visible .collector-quote {
    animation: fadeInUp 0.8s ease 5.5s forwards;
}

.collector-quote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-text-dim);
}

.collector-signature {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-fire);
}

.continue-button {
    margin-top: 3rem;
    background: transparent;
    border: 1px solid var(--color-bone);
    color: var(--color-bone);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-medium);
}

.outro-text.visible .continue-button {
    animation: fadeInUp 0.8s ease 6.5s forwards;
}

.continue-button:hover {
    background: var(--color-fire);
    border-color: var(--color-fire);
    color: var(--color-bg);
}

/* ----- PROGRESS INDICATOR ----- */
.progress-indicator {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.progress-item {
    width: 12px;
    height: 12px;
    border: 1px solid var(--color-text-dim);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.progress-item.discovered {
    background: var(--color-fire);
    border-color: var(--color-fire);
}

.progress-item.secret {
    opacity: 0;
}

.progress-item.secret.discovered {
    opacity: 1;
    background: var(--color-green);
    border-color: var(--color-green);
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Záblesk obrazovky při objevení zóny (Core.Utils.flashScreen) */
@keyframes flashFade {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ----- TOUCH HINT ----- */
.touch-hint {
    display: none;
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 8, 6, 0.85);
    border: 1px solid rgba(232, 93, 4, 0.3);
    border-radius: 8px;
    z-index: 150;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.touch-hint.visible {
    opacity: 1;
}

.touch-hint-icon {
    width: 32px;
    height: 32px;
    color: var(--color-fire);
    animation: swipeHint 2s ease-in-out infinite;
}

.touch-hint p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    font-style: italic;
    margin: 0;
}

@keyframes swipeHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* ----- PORTRAIT ORIENTATION BLOCK ----- */
.portrait-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.portrait-overlay .rotate-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    color: var(--color-fire);
    animation: rotateHint 2s ease-in-out infinite;
}

.portrait-overlay h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.portrait-overlay p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-dim);
    font-style: italic;
    max-width: 280px;
}

@keyframes rotateHint {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
    .interactive-zone {
        min-width: 60px;
        min-height: 60px;
    }

    .touch-hint {
        display: flex;
    }
}

@media (max-width: 768px) {
    .preloader-title {
        font-size: 2.5rem;
    }

    .narrative-panel {
        width: 98%;          /* pevná šířka — panel s left:50% se jinak neroztáhne přes 50 % */
        max-width: 98%;      /* téměř do kraje — méně zalomených řádků */
        padding: 0.7rem 1rem;
    }

    .narrative-text {
        font-size: 0.75rem;  /* ~20 % menší (bylo 0.9rem) */
        max-width: 100%;     /* zrušit desktop limit 60ch — text využije šířku panelu */
    }

    .intro-text {
        width: 96%;          /* šířka téměř do kraje — méně zalamování intro textu */
    }

    .intro-line,
    .outro-line {
        font-size: 1.3rem;
    }

    .outro-line.emphasis {
        font-size: 1.8rem;
    }

    .progress-indicator {
        bottom: 1rem;
        right: 2rem;
    }

    .interactive-zone {
        min-width: 80px;
        min-height: 80px;
    }
}

/* ----- MOBILE LANDSCAPE ----- */
@media (max-height: 500px) and (orientation: landscape) {
    html {
        font-size: 14px;
    }

    .preloader-title {
        font-size: 4rem;
        letter-spacing: 0.2em;
        margin-bottom: 0.3rem;
    }

    .preloader-subtitle {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .preloader-quote {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .enter-button {
        padding: 0.6rem 1.5rem;
        font-size: 1.5rem;
    }

    .narrative-panel {
        padding: 0.6rem 0.9rem;
        width: 96%;          /* pevná šířka — panel s left:50% se jinak neroztáhne přes 50 % */
        max-width: 96%;      /* téměř do kraje — méně zalomených řádků */
    }

    .narrative-text {
        font-size: 1.3rem;   /* ~20 % menší (bylo 1.63rem) */
        max-width: 100%;     /* zrušit desktop limit 60ch — text využije šířku panelu */
    }

    .intro-text {
        width: 94%;          /* šířka téměř do kraje — intro se nezalamuje */
    }

    .intro-line,
    .outro-line {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .outro-line.emphasis {
        font-size: 2.6rem;
    }

    .collector-quote {
        margin-top: 1.5rem;
    }

    .collector-quote p {
        font-size: 2rem;
    }

    .collector-signature {
        font-size: 1.6rem;
    }

    .continue-button {
        margin-top: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 1.5rem;
    }

    .progress-indicator {
        bottom: 0.5rem;
        right: 1.5rem;
    }

    .progress-item {
        width: 8px;
        height: 8px;
    }

    .touch-hint {
        bottom: 2rem;
        padding: 0.5rem 1rem;
        gap: 0.3rem;
    }

    .touch-hint-icon {
        width: 24px;
        height: 24px;
    }

    .touch-hint p {
        font-size: 1.5rem;
    }
}

@media (max-height: 400px) and (orientation: landscape) {
    html {
        font-size: 12px;
    }

    .preloader-title {
        font-size: 3.2rem;
    }

    .intro-text,
    .outro-text {
        padding: 0.5rem;
    }

    .intro-line,
    .outro-line {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
}

/* Portrait orientation block */
@media (max-width: 900px) and (orientation: portrait) {
    .portrait-overlay {
        display: flex;
    }

    .komnata,
    .preloader {
        display: none !important;
    }
}

/* ----- DOTYKOVÁ ZAŘÍZENÍ (pojistka nezávislá na orientaci/rozměrech) -----
   Landscape bloky výše řeší telefony (nízká výška). Tento blok navíc zachytí
   dotyková zařízení, která do nich nespadnou (tablety, foldy v landscape
   s výškou > 500px). Media dotaz (hover:none)+(pointer:coarse) = primární
   vstup je prst, ne myš — spolehlivá detekce mobilu i ve vynuceném landscape. */
@media (hover: none) and (pointer: coarse) {
    .narrative-panel {
        width: 96%;
        max-width: 96%;
    }

    .narrative-text {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .intro-text {
        width: 94%;
    }
}

/* ----- SKIP LINK (Accessibility) ----- */
/* Vizuálně skrytý, ale přístupný pro screen readery a keyboard navigaci */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    color: var(--color-fire);
    padding: 0.8rem 1.5rem;
    z-index: 10001;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid var(--color-fire);
    border-radius: 0 0 4px 4px;
    transition: top 0.3s ease;
    opacity: 0;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
}

/* ----- FOCUS STYLES (Accessibility) ----- */
/* Focus visible pro keyboard navigaci */
.interactive-zone:focus {
    outline: none;
}

.interactive-zone:focus-visible .zone-highlight {
    border: 2px solid var(--color-fire);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.3),
                inset 0 0 30px rgba(232, 93, 4, 0.2);
}

/* Zóny s data-secret - zelený focus */
.interactive-zone[data-secret="true"]:focus-visible .zone-highlight {
    border: 2px solid var(--color-green);
    box-shadow: 0 0 0 4px rgba(74, 124, 35, 0.3),
                inset 0 0 20px rgba(74, 124, 35, 0.15);
}

/* Tlačítka */
.enter-button:focus-visible,
.continue-button:focus-visible {
    outline: 2px solid var(--color-fire);
    outline-offset: 4px;
    box-shadow: 0 0 20px var(--color-fire-glow);
}

.fullscreen-btn:focus-visible {
    outline: 2px solid var(--color-fire);
    outline-offset: 2px;
    opacity: 1;
}

/* ----- REDUCED MOTION (Accessibility) ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Zastavit video, zobrazit statický obrázek */
    .scene-video {
        display: none !important;
    }

    .scene-fallback,
    .scene-fallback.hidden {
        display: block !important;
        opacity: 1 !important;
    }

    /* Skrýt efekty částic a kouře */
    .layer-effects {
        display: none !important;
    }

    /* Zakázat parallax */
    .layer {
        transform: none !important;
    }
}

/* ----- PRINT ----- */
@media print {
    body * {
        display: none !important;
    }
}
