/* B0X3 v128 - KO video: the victory tile and the full-screen viewer (js/KOClip.js) */
.vic-ko-video {
    height: min(24vh, 190px);
    width: auto;
    max-width: min(86vw, 340px);
    object-fit: contain;
    background: #000;
    border: 1px solid rgba(240, 192, 64, .55);
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(255, 60, 0, .2);
    cursor: pointer;
}
.vic-ko-video[hidden], .vic-ko-photo[hidden], .vic-ko-caption[hidden], .vic-ko-watch[hidden] { display: none; }
.vic-ko-photo-wrap[data-clip="making"] .vic-ko-caption::before {
    content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%;
    background: #ff3c2a; vertical-align: 1px; animation: kcBlink 1s steps(2, start) infinite;
}
@keyframes kcBlink { to { visibility: hidden; } }
.vic-ko-watch {
    min-height: 40px; padding: 6px 16px; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(240, 192, 64, .55); background: rgba(240, 192, 64, .12); color: #f0c040;
    font-family: "Teko", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .14em; line-height: 1;
}
.vic-ko-watch:hover { background: rgba(240, 192, 64, .22); }
.vic-ko-watch:focus-visible { outline: 2px solid #f0c040; outline-offset: 2px; }

.kc-view {
    position: fixed; inset: 0; z-index: 3100; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(2, 3, 6, .94);
}
.kc-view.v { display: flex; }
.kc-video { max-width: 100%; max-height: calc(100% - 72px); border-radius: 8px; background: #000; box-shadow: 0 16px 50px rgba(0, 0, 0, .7); }
.kc-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kc-b {
    min-height: 48px; min-width: 110px; padding: 6px 16px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08); color: #fff; font-family: "Teko", sans-serif; font-weight: 600; font-size: 22px;
    letter-spacing: .14em; line-height: 1; cursor: pointer;
}
.kc-b:hover { filter: brightness(1.15); }
.kc-b:focus-visible { outline: 2px solid #f0c040; outline-offset: 2px; }
.kc-main { background: linear-gradient(135deg, #d92027, #b3151b); border-color: transparent; }
@media (max-height: 420px) { .kc-video { max-height: calc(100% - 60px); } .kc-b { min-height: 44px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .vic-ko-photo-wrap[data-clip="making"] .vic-ko-caption::before { animation: none; } }

/* short landscape screens (phones held sideways): the KO video sits as a small tile in the top-right corner,
   clear of the result and of the buttons at the bottom */
@media (max-height: 500px) and (orientation: landscape) {
    .vic-ko-photo-wrap.v[data-clip="ready"], .vic-ko-photo-wrap.v[data-clip="making"] {
        position: fixed; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); margin: 0; z-index: 2; gap: 4px;
    }
    .vic-ko-photo-wrap.v[data-clip] .vic-ko-video { height: min(30vh, 112px); }
    .vic-ko-photo-wrap.v[data-clip="making"] .vic-ko-photo { width: 168px; max-height: 30vh; }
    .vic-ko-photo-wrap.v[data-clip] .vic-ko-caption { font-size: 9px; letter-spacing: 2px; max-width: 200px; text-align: center; }
    .vic-ko-photo-wrap.v[data-clip] .vic-ko-watch { min-height: 40px; font-size: 17px; padding: 4px 12px; }
}
