:root {
    --bg: #070A0F;
    --text: #E8EEF7;
    --muted: rgba(232, 238, 247, 0.58);
    --sidebar-w: 32%;
    --workspace-w: 68%;
    --chrome-pad: 20px;
    --glass: rgba(10, 14, 22, 0.72);
    --border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.scene-page {
    min-height: 100vh;
    min-height: 100dvh;
}

.scene-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ——— Workspace (canvas) ——— */
.scene-workspace {
    position: relative;
    flex: 1 1 var(--workspace-w);
    width: var(--workspace-w);
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    background: #05070c;
    overflow: hidden;
}

.scene-stage {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: manipulation;
}

.scene-chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: var(--chrome-pad);
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(7, 10, 15, 0.55), transparent);
}

.scene-chrome > * {
    pointer-events: auto;
}

.scene-chrome__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scene-chrome__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(232, 238, 247, 0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    margin: -8px 0 0 -8px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.scene-chrome__back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.scene-chrome__back svg {
    display: block;
    flex-shrink: 0;
}

.scene-chrome__status-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 238, 247, 0.55);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 10, 15, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scene-chrome__mute {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 10, 15, 0.45);
    color: rgba(232, 238, 247, 0.85);
    font: inherit;
    font-size: 12px;
    font-weight: 560;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, background 0.2s ease, color 0.2s ease;
}

.scene-chrome__mute.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scene-chrome__mute:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

/* Unlock overlay */
.scene-interaction-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 6, 10, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.scene-interaction-overlay.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scene-unlock-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 10, 15, 0.72);
    color: #E8EEF7;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.scene-unlock-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(12, 16, 24, 0.85);
}

.scene-unlock-btn__icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E8EEF7;
    box-shadow: 0 0 0 4px rgba(232, 238, 247, 0.18);
}

.scene-unlock-btn__text {
    font-size: 14px;
    font-weight: 560;
    letter-spacing: 0.02em;
}

/* ——— Sidebar ——— */
.scene-sidebar {
    flex: 0 0 var(--sidebar-w);
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    border-left: 1px solid var(--border);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 40%),
        var(--glass);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.scene-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-height: 100%;
    padding: 40px 32px 48px;
}

.scene-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.scene-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.scene-title-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(160, 220, 200, 0.9);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(160, 220, 200, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.scene-description {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--muted);
}

.scene-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(232, 238, 247, 0.4);
}

.scene-instruction-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(232, 238, 247, 0.68);
}

.scene-tech-specs {
    margin: 0;
}

.tech-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-spec-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.84rem;
    line-height: 1.4;
}

.tech-spec-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.tech-spec-list span {
    color: rgba(232, 238, 247, 0.42);
    flex-shrink: 0;
}

.tech-spec-list strong {
    font-weight: 560;
    text-align: right;
    color: rgba(232, 238, 247, 0.88);
}

.scene-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 12px;
}

.store-conversion-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-store {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #070A0F;
    background: #E8EEF7;
    transition: transform 0.25s ease, background 0.2s ease;
}

.btn-store:hover {
    transform: translateY(-1px);
    background: #fff;
}

.btn-store:hover .btn-store__arrow {
    transform: translateX(2px);
    color: #070A0F;
}

.btn-store__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow:
        0 0 0 1px rgba(7, 10, 15, 0.08),
        0 4px 12px rgba(7, 10, 15, 0.12);
}

.btn-store__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.btn-store__arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    color: rgba(7, 10, 15, 0.55);
    transition: transform 0.25s ease, color 0.2s ease;
}

.btn-store__copy span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-store__copy small {
    font-size: 0.75rem;
    color: rgba(7, 10, 15, 0.55);
}

.alternative-device-tip {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(232, 238, 247, 0.42);
}

.sidebar-footer {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scene-attribution {
    margin: 0;
}

.scene-attribution__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(232, 238, 247, 0.42);
}

.scene-attribution__text strong {
    font-weight: 560;
    color: rgba(232, 238, 247, 0.62);
}

.scene-attribution__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.scene-attribution__text a:hover {
    color: rgba(232, 238, 247, 0.68);
}

.link-back-gallery {
    color: rgba(232, 238, 247, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.link-back-gallery:hover {
    color: #E8EEF7;
}

@media (max-width: 900px) {
    .scene-container {
        flex-direction: column;
        min-height: auto;
    }

    .scene-workspace {
        width: 100%;
        flex: none;
        height: 60vh;
        height: 60dvh;
    }

    .scene-sidebar {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 40vh;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .scene-sidebar__inner {
        padding: 28px 22px 40px;
        gap: 28px;
    }

    .scene-chrome {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scene-interaction-overlay,
    .scene-unlock-btn,
    .scene-chrome__mute,
    .btn-store {
        transition: none;
    }

    .scene-unlock-btn:hover,
    .btn-store:hover {
        transform: none;
    }
}
