/* Fullscreen mode */
::backdrop {
    background: #000;
}

/* ── Art section fullscreen container ── */
.project-section-art:fullscreen {
    background: #000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Hide everything except the file */
.project-section-art:fullscreen #feature-project-controls,
.project-section-art:fullscreen .feature-controls-wrap {
    display: none !important;
}

/* ── Art: carousel wrapper fills the screen with buttons on sides ── */
.project-section-art:fullscreen .project-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 16px;
    padding: 0 8px;
    box-sizing: border-box;
}

.project-section-art:fullscreen .project-carousel-prev,
.project-section-art:fullscreen .project-carousel-next {
    flex-shrink: 0;
    z-index: 10;
    opacity: 0.85;
}

.project-section-art:fullscreen .project-carousel-prev:hover,
.project-section-art:fullscreen .project-carousel-next:hover {
    opacity: 1;
}

/* Carousel frame: remove decorative border/padding in fullscreen */
.project-section-art:fullscreen .project-carousel.project-art-frame,
.project-section-art:fullscreen .project-art-frame {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-section-art:fullscreen .project-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-section-art:fullscreen .project-carousel-inner,
.project-section-art:fullscreen .project-carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-section-art:fullscreen .project-carousel-slide[hidden] {
    display: none !important;
}

.project-section-art:fullscreen .project-carousel-slide img,
.project-section-art:fullscreen .project-art {
    object-fit: contain;
    max-width: 100%;
    max-height: calc(100vh - 60px); /* leave room for dots */
    width: auto;
    height: auto;
}

/* Dots */
.project-section-art:fullscreen .project-carousel-dots {
    flex-shrink: 0;
    padding: 8px 0 4px;
}

/* Single art (no carousel wrapper) */
.project-section-art:fullscreen > .project-art-frame {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* ── Music player (Messages / iOS glossy skin) ── */
.project-section-art:fullscreen .music-player-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #d0b589 0%, #dce0e8 35%, #b8c0cc 100%);
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
}

/* ── Game fullscreen: stretch container + iframe to fill screen ── */
.project-section-art:fullscreen .game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 0 !important;
    margin: 0 !important;
}

.project-section-art:fullscreen .project-game-iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
    border: none !important;
    display: block;
}

/* Hide touch/gamepad hints in fullscreen */
.project-section-art:fullscreen .touch-hints,
.project-section-art:fullscreen .gamepad-hints {
    display: none !important;
}

/* ── Fullscreen exit hint overlay ── */
.fs-exit-hint {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: auto;
}

.fs-exit-hint.fs-hint-hidden {
    opacity: 0.12;
    pointer-events: none;
}

.fs-exit-btn {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: background 0.15s ease, border-color 0.15s ease;
    letter-spacing: 0.03em;
}

.fs-exit-btn:hover {
    background: rgba(120, 30, 20, 0.8);
    border-color: rgba(255, 100, 100, 0.6);
}

.fs-esc-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    user-select: none;
}
