/* ===== Magnetic fullscreen video ===== */
.video-fullscreen-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: visible;
    background: #f5f5f5;
    margin: 0;
    padding: 16px 15px;
    box-sizing: border-box;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-fullscreen-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.video-fullscreen-section video::-webkit-media-controls,
.video-fullscreen-section video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Нижня кнопка звуку */
.video-unmute-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    border: 2.5px solid #ffffff;
    border-radius: 60px;
    padding: 15px 30px;
    font-size: 17px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.video-unmute-btn.visible {
    opacity: 1;
    pointer-events: auto;
    animation: unmutePulse 1.6s ease-in-out infinite;
}
@keyframes unmutePulse {
    0%   { transform: translateX(-50%) scale(1);    box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
    50%  { transform: translateX(-50%) scale(1.07); box-shadow: 0 6px 26px rgba(255,255,255,0.22); }
    100% { transform: translateX(-50%) scale(1);    box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
}
.video-unmute-btn:active {
    transform: translateX(-50%) scale(0.95) !important;
    animation: none;
}
.video-unmute-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Верхня яскрава кнопка звуку */
.video-unmute-btn-top {
    position: absolute;
    top: 30px;
    left: 28px;
    z-index: 30;
    background: #ff2d2d;
    color: #ffffff;
    border: 2.5px solid #ffffff;
    border-radius: 50px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(255, 45, 45, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.video-unmute-btn-top.visible {
    opacity: 1;
    pointer-events: auto;
    animation: unmutePulseTop 1.4s ease-in-out infinite;
}
@keyframes unmutePulseTop {
    0%   { transform: scale(1);    box-shadow: 0 4px 18px rgba(255, 45, 45, 0.55); }
    50%  { transform: scale(1.11); box-shadow: 0 6px 24px rgba(255, 80, 80, 0.7); }
    100% { transform: scale(1);    box-shadow: 0 4px 18px rgba(255, 45, 45, 0.55); }
}
.video-unmute-btn-top:active {
    transform: scale(0.94) !important;
    animation: none;
}
.video-unmute-btn-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Рука + кола вібрації */
.tap-hint {
    position: absolute;
    z-index: 35;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tap-hint.visible {
    opacity: 1;
}
.tap-hint-top {
    top: 48px;
    left: 95px;
}
.tap-hint-bottom {
    bottom: 22px;
    left: 68%;
    transform: translateX(-50%);
}
.tap-hint-inner {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tap-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 45, 45, 0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    animation: tapRipple 1.5s ease-out infinite;
}
.tap-ripple:nth-child(2) {
    animation-delay: 0.5s;
    border-color: rgba(255, 255, 255, 0.7);
}
.tap-ripple:nth-child(3) {
    animation-delay: 1s;
    border-color: rgba(255, 45, 45, 0.5);
}
@keyframes tapRipple {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}
.tap-hand {
    font-size: 42px;
    line-height: 1;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
    animation: handTap 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}
@keyframes handTap {
    0%, 100% { transform: scale(1) rotate(-8deg); }
    40%      { transform: scale(0.88) rotate(-8deg) translateY(3px); }
    55%      { transform: scale(1.05) rotate(-8deg) translateY(0); }
}



/* ===== Кнопка «Замовити чай» — зелена 3D + велика рука ===== */
.video-order-wrap {
    position: absolute;
    bottom: 22px;
    left: 36%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    /* рука може виходити за край відео */
    overflow: visible;
}
.video-order-wrap.is-shown {
    opacity: 1;
    pointer-events: auto;
}
.video-order-wrap.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.video-order-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 5px;
    cursor: pointer;
    /* зелений корпус */
    background: linear-gradient(180deg, #7cb342 0%, #558b2f 45%, #33691e 100%);
    box-shadow:
        0 6px 0 #1b5e20,
        0 10px 22px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    animation: orderBtnBob 1.6s ease-in-out infinite;
    overflow: visible;
}
/* Біле кільце */
.video-order-btn::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: #fff;
    box-shadow:
        inset 0 2px 3px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.8);
    pointer-events: none;
}
/* Внутрішня зелена «подушка» */
.video-order-btn::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #9ccc65 0%, #7cb342 40%, #558b2f 100%);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.video-order-btn__text {
    position: relative;
    z-index: 2;
    display: block;
    padding: 14px 34px;
    font-size: 20px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Montserrat", sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffffff;
    /* 3D білий текст з зеленою глибиною */
    text-shadow:
        0 1px 0 #33691e,
        0 2px 0 #2e7d32,
        0 3px 0 #1b5e20,
        0 4px 8px rgba(0, 0, 0, 0.35);
    line-height: 1.1;
}

.video-order-btn:active {
    transform: translateY(3px);
    animation: none;
    box-shadow:
        0 2px 0 #1b5e20,
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

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

/* Велика рука — під кнопкою, максимально виходить за відео */
.video-order-hand {
    position: absolute;
    left: 55%;
    bottom: -42px;
    font-size: 72px;
    line-height: 1;
    z-index: 50;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
    transform-origin: 40% 15%;
    animation: orderHandTap 1.4s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}
@keyframes orderHandTap {
    0%, 100% { transform: rotate(-20deg) scale(1) translate(0, 0); }
    40%      { transform: rotate(-20deg) scale(0.88) translate(-4px, 10px); }
    55%      { transform: rotate(-20deg) scale(1.1) translate(0, 0); }
}

/* щоб рука могла виходити за рамку відео */
.video-fullscreen-section {
    overflow: visible !important;
}
.video-fullscreen-section video {
    border-radius: 15px;
}

@media (max-width: 480px) {
    .video-order-wrap {
        left: 34%;
        bottom: 18px;
    }
    .video-order-btn__text {
        font-size: 17px;
        padding: 13px 26px;
        letter-spacing: 0.5px;
    }
    .video-order-hand {
        font-size: 64px;
        left: 52%;
        right: auto;
        bottom: -38px;
    }
}
