.v72-maburoi-field-film {
    position: absolute;
    inset: 2% 1%;
    z-index: 1;
    border-radius: 46% / 15%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 920ms ease-in-out;
    /* Keep the table's rim visible without exposing the live artwork through the film. */
    mask-image:
        linear-gradient(90deg, transparent, #000 4% 96%, transparent),
        linear-gradient(0deg, transparent, #000 4% 96%, transparent);
    mask-composite: intersect;
}

.v72-maburoi-field-film > video {
    position: absolute;
    /* Crop the filmed frame into the live felt. Both clips share the same registration. */
    inset: -4% auto auto -3%;
    width: 106%;
    height: 110%;
    object-fit: fill;
}

/* The felt itself clips the film to its exact curve, including the lower corners. */
.v72-maburoi-field-film[data-theme="mischief"] {
    inset: 0;
    z-index: 0;
    border-radius: 0;
    mask-image: none;
}

.v72-maburoi-field-film[data-theme="mischief"] > video {
    inset: 0;
    width: 100%;
    height: 100%;
}

.v72-casino-rim {
    display: none;
}

#v72-casino-table .v72-casino-felt:has(> .v72-maburoi-field-film[data-theme="mischief"]) {
    box-shadow: none;
}

/* Match the felt's border box so the same rim and shade cover the film. */
.v72-maburoi-field-film[data-theme="mischief"] ~ .v72-casino-rim {
    display: block;
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 5px rgba(8,8,6,.66),
        inset 0 0 0 7px rgba(185,144,64,.34),
        inset 0 0 75px rgba(0,0,0,.88);
}

.v72-maburoi-field-loop {
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.v72-maburoi-field-loop.is-playing {
    opacity: 1;
}

.v72-maburoi-field-film.is-playing {
    opacity: 1;
}

.v72-maburoi-field-film.is-fading {
    opacity: 0;
}

#v72-casino-table .v72-casino-felt > :is(.v72-casino-suit, .v72-casino-medallion, .v72-chip-cluster),
#v72-casino-table .v72-casino-felt::after,
body.v45-battle-active.v72-casino-battle :is(.opponent-area, .player-area)::after {
    transition: opacity 920ms ease-in-out;
}

#v72-casino-table .v72-casino-felt:has(> .v72-maburoi-field-film.is-playing:not(.is-fading))
    > :is(.v72-casino-suit, .v72-casino-medallion, .v72-chip-cluster),
#v72-casino-table .v72-casino-felt:has(> .v72-maburoi-field-film[data-theme="mischief"].is-playing:not(.is-fading))::after {
    opacity: 0;
}

body.v45-battle-active.v72-casino-battle:has(#v72-casino-table .v72-maburoi-field-film.is-playing:not(.is-fading))
    :is(.opponent-area, .player-area)::after {
    opacity: 0 !important;
}
