.hemix-tour,
.hemix-tour-shell {
    min-height: 100vh;
    overflow: hidden;
    background: #050505;
}

.hemix-tour .hemix-footer {
    display: none;
}

.tour-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 20%, rgba(242, 202, 80, 0.16), transparent 30%),
        #050505;
}

.tour-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #050505;
}

.tour-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    display: grid;
    width: min(560px, calc(100vw - 32px));
    gap: var(--hemix-space-2);
    padding: var(--hemix-space-4);
    border-radius: var(--hemix-radius-lg);
    transform: translate(-50%, -50%);
}

.tour-empty[hidden] {
    display: none;
}

.tour-empty h2 {
    color: var(--hemix-color-text);
    font-family: var(--hemix-font-heading);
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1;
}

.tour-empty p {
    max-width: 52ch;
    color: var(--hemix-color-text-muted);
    line-height: 1.6;
}

.tour-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hemix-space-2);
    margin-top: var(--hemix-space-1);
}

.tour-shade {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    pointer-events: none;
}

.tour-shade--top {
    top: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.82), transparent);
}

.tour-shade--bottom {
    bottom: 0;
    height: 220px;
    background: linear-gradient(0deg, rgba(5, 5, 5, 0.86), transparent);
}

.tour-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--hemix-space-2);
    color: var(--hemix-color-text);
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(18, 17, 13, 0.94)),
        #050505;
    transition:
        opacity var(--hemix-duration-base) var(--hemix-ease-standard),
        visibility var(--hemix-duration-base) var(--hemix-ease-standard);
}

.tour-intro-hit-area {
    position: absolute;
    inset: 0;
    z-index: 6;
    cursor: pointer;
}

.tour-wrapper.is-intro-dismissed .tour-intro-hit-area {
    pointer-events: none;
}

.tour-wrapper.is-loaded .tour-loading {
    opacity: 0;
    visibility: hidden;
}

.tour-loading__mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--hemix-color-on-primary);
    border: 1px solid rgba(242, 202, 80, 0.45);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--hemix-color-primary-bright), var(--hemix-color-primary));
    font-family: var(--hemix-font-heading);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 26px 72px rgba(242, 202, 80, 0.22);
}

.tour-loading span {
    color: var(--hemix-color-text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: var(--hemix-letter-caps);
    text-transform: uppercase;
}

.tour-loading strong {
    font-family: var(--hemix-font-heading);
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1;
}

.tour-loading__bar {
    width: min(320px, 74vw);
    height: 3px;
    overflow: hidden;
    border-radius: var(--hemix-radius-full);
    background: rgba(255, 255, 255, 0.13);
}

.tour-loading__bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--hemix-color-primary-bright);
    animation: tourLoading 1.2s var(--hemix-ease-standard) infinite;
}

.tour-project-panel {
    position: absolute;
    top: clamp(20px, 4vw, 56px);
    left: clamp(20px, 4vw, 72px);
    z-index: 8;
    width: min(420px, calc(100vw - 40px));
    padding: var(--hemix-space-3);
    border-radius: var(--hemix-radius-lg);
    transition:
        opacity var(--hemix-duration-base) var(--hemix-ease-standard),
        transform var(--hemix-duration-base) var(--hemix-ease-standard),
        visibility var(--hemix-duration-base) var(--hemix-ease-standard);
}

.tour-wrapper.is-intro-dismissed .tour-project-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
}

.tour-project-panel h1 {
    margin-top: var(--hemix-space-1);
    color: var(--hemix-color-text);
    font-family: var(--hemix-font-heading);
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1;
}

.tour-project-panel p {
    margin-top: 8px;
    color: var(--hemix-color-text-muted);
}

.tour-mode-menu {
    position: fixed;
    top: var(--hemix-space-3);
    right: var(--hemix-space-3);
    z-index: 10;
    display: flex;
    gap: 6px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    overflow-x: auto;
    border-radius: var(--hemix-radius-lg);
    scrollbar-width: none;
}

.tour-mode-menu::-webkit-scrollbar {
    display: none;
}

.tour-mode-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    min-width: max-content;
    padding: 0 14px;
    color: var(--hemix-color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hemix-radius-md);
    background: rgba(10, 10, 10, 0.46);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.tour-mode-menu a:hover,
.tour-mode-menu a.is-active {
    color: var(--hemix-color-on-primary);
    border-color: rgba(242, 202, 80, 0.48);
    background: linear-gradient(180deg, var(--hemix-color-primary-bright), var(--hemix-color-primary));
}

.tour-toolbar {
    position: fixed;
    left: 50%;
    bottom: var(--hemix-space-3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    overflow-x: auto;
    border-radius: var(--hemix-radius-full);
    transform: translateX(-50%);
    scrollbar-width: none;
}

.tour-toolbar::-webkit-scrollbar {
    display: none;
}

.tour-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
    min-height: 46px;
    padding: 0 14px;
    color: var(--hemix-color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hemix-radius-full);
    background: rgba(10, 10, 10, 0.52);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.tour-tool span {
    display: inline-grid;
    width: 28px;
    min-width: 28px;
    height: 28px;
    place-items: center;
    color: var(--hemix-color-primary-bright);
    border-radius: 50%;
    background: rgba(242, 202, 80, 0.12);
}

.tour-tool .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings:
        "FILL" 0,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}

.tour-tool--project,
.tour-tool--fullscreen {
    color: var(--hemix-color-on-primary);
    background: linear-gradient(180deg, var(--hemix-color-primary-bright), var(--hemix-color-primary));
}

.tour-tool--project span,
.tour-tool--fullscreen span {
    color: var(--hemix-color-on-primary);
    background: rgba(0, 0, 0, 0.16);
}

.tour-tool--whatsapp {
    color: #061F14;
    background: #34D976;
}

.tour-tool--whatsapp span {
    color: #061F14;
    background: rgba(6, 31, 20, 0.12);
}

.tour-toast {
    position: fixed;
    right: var(--hemix-space-3);
    bottom: calc(var(--hemix-space-3) + 72px);
    z-index: 15;
    max-width: min(320px, calc(100vw - 32px));
    padding: 12px 14px;
    color: var(--hemix-color-text);
    border-radius: var(--hemix-radius-md);
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--hemix-duration-fast) var(--hemix-ease-standard),
        transform var(--hemix-duration-fast) var(--hemix-ease-standard);
}

.tour-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-menu-toggle {
    position: fixed;
    z-index: 16;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    color: var(--hemix-color-on-primary);
    border: 1px solid rgba(242, 202, 80, 0.72);
    border-radius: var(--hemix-radius-full);
    background: linear-gradient(180deg, var(--hemix-color-primary-bright), var(--hemix-color-primary));
    box-shadow: var(--hemix-shadow-gold);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tour-menu-toggle .material-symbols-outlined {
    font-size: 20px;
}

.tour-menu-toggle--modes {
    top: var(--hemix-space-2);
    right: var(--hemix-space-2);
}

.tour-menu-toggle--actions {
    right: var(--hemix-space-2);
    bottom: var(--hemix-space-2);
}

.tour-wrapper.is-modes-open .tour-menu-toggle--modes,
.tour-wrapper.is-actions-open .tour-menu-toggle--actions {
    color: var(--hemix-color-primary-bright);
    background: rgba(10, 10, 10, 0.9);
    box-shadow: var(--hemix-shadow-panel);
}

@keyframes tourLoading {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(240%);
    }
}

@media (max-width: 767px) {
    .tour-project-panel {
        top: var(--hemix-space-2);
        left: var(--hemix-space-2);
        width: calc(100vw - var(--hemix-space-4));
        padding: var(--hemix-space-2);
    }

    .tour-project-panel h1 {
        font-size: 30px;
    }

    .tour-wrapper.is-intro-dismissed .tour-project-panel {
        display: none;
    }

    .tour-toolbar {
        bottom: var(--hemix-space-2);
        width: calc(100vw - var(--hemix-space-4));
        justify-content: flex-start;
        border-radius: var(--hemix-radius-lg);
    }

    .tour-mode-menu {
        top: auto;
        right: var(--hemix-space-2);
        bottom: 86px;
        left: var(--hemix-space-2);
    }

    .tour-tool {
        min-height: 44px;
        padding: 0 12px;
    }

    .tour-tool strong {
        font-size: 11px;
    }

    .tour-toast {
        right: var(--hemix-space-2);
        bottom: 84px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tour-project-panel {
        top: calc(var(--hemix-topbar-height) + var(--hemix-space-3));
        left: var(--hemix-layout-margin-tablet);
        width: min(480px, calc(100vw - var(--hemix-layout-margin-tablet) * 2));
        padding: var(--hemix-space-3);
    }

    .tour-project-panel h1 {
        font-size: clamp(38px, 7vw, 58px);
    }

    .tour-mode-menu {
        top: calc(var(--hemix-topbar-height) + var(--hemix-space-2));
        right: var(--hemix-layout-margin-tablet);
        max-width: calc(100vw - var(--hemix-layout-margin-tablet) * 2);
        overflow-x: auto;
    }

    .tour-toolbar {
        bottom: var(--hemix-space-3);
        width: min(760px, calc(100vw - var(--hemix-layout-margin-tablet) * 2));
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .tour-tool {
        min-width: 44px;
        padding: 0 10px;
    }

    .tour-tool strong {
        font-size: 10px;
    }
}

@media (max-width: 767px), (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
    .tour-project-panel {
        top: var(--hemix-space-2);
        left: var(--hemix-space-2);
        width: min(360px, calc(100vw - 24px));
        padding: 16px;
        background: rgba(14, 14, 14, 0.62);
    }

    .tour-project-panel h1 {
        font-size: clamp(30px, 8vw, 46px);
    }

    .tour-wrapper.is-intro-dismissed .tour-project-panel {
        display: none;
    }

    .tour-mode-menu {
        top: calc(var(--hemix-space-2) + 56px);
        right: var(--hemix-space-2);
        left: auto;
        bottom: auto;
        display: grid;
        width: min(300px, calc(100vw - 24px));
        max-width: none;
        gap: 8px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            opacity var(--hemix-duration-base) var(--hemix-ease-standard),
            transform var(--hemix-duration-base) var(--hemix-ease-standard);
    }

    .tour-wrapper.is-modes-open .tour-mode-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .tour-mode-menu a {
        width: 100%;
        justify-content: flex-start;
    }

    .tour-toolbar {
        right: var(--hemix-space-2);
        bottom: calc(var(--hemix-space-2) + 56px);
        left: auto;
        display: none;
        width: min(300px, calc(100vw - 24px));
        max-height: 48vh;
        overflow: auto;
        transform: none;
        border-radius: var(--hemix-radius-lg);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity var(--hemix-duration-base) var(--hemix-ease-standard),
            transform var(--hemix-duration-base) var(--hemix-ease-standard);
        transform: translateY(10px);
    }

    .tour-wrapper.is-actions-open .tour-toolbar {
        display: grid;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .tour-tool {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 12px;
        border-radius: var(--hemix-radius-md);
    }

    .tour-tool--whatsapp {
        display: none;
    }

    .tour-menu-toggle {
        display: inline-flex;
    }

    .tour-toast {
        right: var(--hemix-space-2);
        bottom: calc(var(--hemix-space-2) + 58px);
    }
}

@media (max-width: 1366px) and (max-height: 820px) and (orientation: landscape) {
    .tour-project-panel {
        top: var(--hemix-space-2);
        left: var(--hemix-space-2);
        width: min(320px, 34vw);
        padding: 14px 16px;
        background: rgba(14, 14, 14, 0.58);
    }

    .tour-project-panel h1 {
        font-size: clamp(26px, 4vw, 40px);
    }

    .tour-project-panel p {
        font-size: 12px;
    }

    .tour-wrapper.is-intro-dismissed .tour-project-panel {
        display: none;
    }

    .tour-menu-toggle {
        display: inline-flex;
        min-height: 46px;
    }

    .tour-mode-menu {
        top: calc(var(--hemix-space-2) + 54px);
        right: var(--hemix-space-2);
        left: auto;
        bottom: auto;
        display: grid;
        width: min(300px, calc(100vw - 24px));
        gap: 8px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            opacity var(--hemix-duration-base) var(--hemix-ease-standard),
            transform var(--hemix-duration-base) var(--hemix-ease-standard);
    }

    .tour-wrapper.is-modes-open .tour-mode-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .tour-mode-menu a {
        width: 100%;
        justify-content: flex-start;
    }

    .tour-toolbar {
        right: var(--hemix-space-2);
        bottom: calc(var(--hemix-space-2) + 54px);
        left: auto;
        display: none;
        width: min(300px, calc(100vw - 24px));
        max-height: calc(100svh - 90px);
        overflow: auto;
        border-radius: var(--hemix-radius-lg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition:
            opacity var(--hemix-duration-base) var(--hemix-ease-standard),
            transform var(--hemix-duration-base) var(--hemix-ease-standard);
    }

    .tour-wrapper.is-actions-open .tour-toolbar {
        display: grid;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .tour-tool {
        width: 100%;
        justify-content: flex-start;
        min-height: 42px;
        padding: 0 12px;
        border-radius: var(--hemix-radius-md);
    }

    .tour-tool--whatsapp {
        display: none;
    }

    .tour-toast {
        right: var(--hemix-space-2);
        bottom: calc(var(--hemix-space-2) + 54px);
    }
}

@media (min-width: 1440px) {
    .tour-project-panel {
        left: 88px;
        width: 470px;
    }

    .tour-toolbar {
        bottom: var(--hemix-space-4);
    }
}
