.demo-helper {
    position: fixed;
    bottom: 0;
    left: 70%;
    transform: translateX(-50%);
    z-index: 220;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: min(560px, calc(100vw - 24px));
    padding: 18px 18px 0;
    pointer-events: none;
    transition: right 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.demo-helper::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 28px;
    bottom: 0;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    background:
        radial-gradient(circle at 74% 46%, rgba(255,255,255,0.1), transparent 31%),
        radial-gradient(circle at 30% 30%, rgba(53,217,107,0.08), transparent 36%),
        linear-gradient(180deg, rgba(19,21,26,0.82), rgba(3,3,6,0.94));
    box-shadow: 0 20px 54px rgba(0,0,0,0.58);
    pointer-events: none;
}

.demo-helper.is-hidden {
    left: auto;
    right: 0;
    bottom: 0;
    transform: none;
    width: 126px;
    height: 112px;
    max-width: none;
    padding: 0;
    overflow: hidden;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    pointer-events: auto;
}

.demo-helper.is-hidden:hover {
    width: 142px;
}

.demo-helper.is-hidden::before {
    display: none;
}

.demo-helper.is-hidden .demo-helper-bubble {
    display: none;
}

.demo-helper.is-hidden .demo-helper-character {
    width: 154px;
    height: auto;
    max-width: none;
    transform: translateX(16px);
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.48));
}

.demo-helper-character {
    position: relative;
    z-index: 1;
    width: 216px;
    height: 216px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,0.42));
    pointer-events: auto;
}

.demo-helper-character.is-missing {
    display: none;
}

.demo-helper-bubble {
    position: relative;
    z-index: 1;
    flex: 0 0 310px;
    width: 310px;
    min-height: 174px;
    padding: 15px 16px 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(53,217,107,0.24);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(53,217,107,0.1), rgba(96,165,250,0.07) 58%, rgba(255,255,255,0.025)),
        rgba(14,14,18,0.96);
    box-shadow: 0 22px 52px rgba(0,0,0,0.42);
    pointer-events: auto;
}

.demo-helper-bubble::after {
    content: "";
    position: absolute;
    right: -9px;
    bottom: 32px;
    width: 16px;
    height: 16px;
    border-top: 1px solid rgba(53,217,107,0.24);
    border-right: 1px solid rgba(53,217,107,0.24);
    background: rgba(14,14,18,0.96);
    transform: rotate(45deg);
}

.demo-helper-kicker {
    margin-bottom: 5px;
    color: var(--accent, #35d96b);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.demo-helper-title {
    margin-bottom: 5px;
    color: var(--text, #f0f0f0);
    font-size: 14px;
    font-weight: 900;
}

.demo-helper-copy {
    color: var(--muted2, #888894);
    font-size: 12px;
    line-height: 1.55;
}

.demo-helper-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.demo-helper-next,
.demo-helper-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.045);
    color: var(--text, #f0f0f0);
    font-family: var(--font-body, sans-serif);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.demo-helper-next {
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
}

.demo-helper-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.demo-helper-next:hover,
.demo-helper-close:hover {
    border-color: rgba(53,217,107,0.32);
    background: rgba(53,217,107,0.08);
}

.demo-stage-counter {
    position: fixed;
    top: 18px;
    left: 70%;
    transform: translateX(-50%);
    z-index: 215;
    width: min(310px, calc(100vw - 28px));
    padding: 13px 14px 14px;
    border: 1px solid rgba(96,165,250,0.28);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(96,165,250,0.12), rgba(53,217,107,0.07)),
        rgba(12,14,19,0.96);
    box-shadow: 0 18px 44px rgba(0,0,0,0.36);
}

.demo-stage-kicker {
    margin-bottom: 7px;
    color: #93c5fd;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.demo-stage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.demo-stage-title {
    min-width: 0;
    color: var(--text, #f0f0f0);
    font-size: 13px;
    font-weight: 900;
}

.demo-stage-time {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid rgba(53,217,107,0.28);
    border-radius: 999px;
    background: rgba(53,217,107,0.08);
    color: var(--accent, #35d96b);
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    font-weight: 900;
}

.demo-stage-tip {
    margin-top: 8px;
    color: var(--muted2, #888894);
    font-size: 11px;
    line-height: 1.45;
}

.demo-stage-action {
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid rgba(96,165,250,0.36);
    border-radius: 999px;
    background: rgba(96,165,250,0.1);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.demo-stage-action:hover {
    border-color: rgba(53,217,107,0.36);
    color: var(--accent, #35d96b);
}

@media (max-width: 720px) {
    .demo-stage-counter {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        padding: 11px 12px;
    }

    .demo-helper {
        bottom: 0;
        left: 6px;
        right: 6px;
        transform: none;
        width: auto;
        gap: 8px;
        padding: 12px 12px 0;
        transition: none;
    }

    .demo-helper::before {
        top: 22px;
        bottom: 0;
        border-radius: 22px 22px 0 0;
    }

    .demo-helper.is-hidden {
        left: auto;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100px;
        height: 92px;
        padding: 0;
    }

    .demo-helper.is-hidden:hover {
        width: 114px;
    }

    .demo-helper.is-hidden .demo-helper-character {
        width: 126px;
        height: auto;
        transform: translateX(14px);
        filter: none;
    }

    .demo-helper-character {
        width: 152px;
        height: 152px;
        filter: none;
    }

    .demo-helper-bubble {
        flex: 0 1 min(280px, calc(100vw - 116px));
        width: min(264px, calc(100vw - 104px));
        min-height: 156px;
        padding: 13px 14px;
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .demo-helper-title {
        font-size: 13px;
    }

    .demo-helper-copy {
        font-size: 11px;
    }
}
