@keyframes show-lobby {
    0%   { clip-path: circle(8% at 50% 70vh); }
    100% { clip-path: circle(100% at 50% 70vh); }
}
@keyframes scale-beat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.015); }
}

@keyframes show-transition-upper-bg {
    0%        { transform: skewX(-30deg) translateX(-100%); }
    30%, 50%  { transform: skewX(-30deg) translateX(0); }
    80%, 100% { transform: skewX(-30deg) translateX(100%); }
}
@keyframes show-transition-lower-bg {
    0%        { transform: skewX(-30deg) translateX(100%); }
    30%, 50%  { transform: skewX(-30deg) translateX(0); }
    80%, 100% { transform: skewX(-30deg) translateX(-100%); }
}
@keyframes show-transition-upper-letter {
    0%   { transform: translateX(-600%); box-shadow: 0 0 0 0 rgba(0, 0, 0, .2); }
    30%  { transform: translateX(0); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 0, 0, .2); }
    40%  { box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2); }
    80%  { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(0); opacity: 0; box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2); }
}
@keyframes show-transition-lower-letter {
    0%   { transform: translateX(600%); box-shadow: 0 0 0 0 rgba(0, 0, 0, .2); }
    30%  { transform: translateX(0); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 0, 0, .2); }
    40%  { box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2); }
    80%  { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(0); opacity: 0; box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2); }
}
@keyframes show-transition-text {
    0%, 30%  { transform: translateX(-240px); opacity: 0; }
    40%, 80% { transform: translateX(0); opacity: 1; }
    100%     { transform: translateX(0); opacity: 0; }
}
@keyframes show-transition {
    0%        { visibility: visible; }
    70%       { transform: scale(1); opacity: 1; }
    85%, 100% { transform: scale(1.2); opacity: 0; }
}

@keyframes coach-player-appear {
    0%   { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes recording-pop {
    0%, 30%, 100% { opacity: .9; transform: scale(1); }
    15%  { opacity: 1; transform: scale(1.2); }
}
@keyframes gm-charge-bg {
    0%      { opacity: 0; transform: scale(1.6); }
    40%     { opacity: 1; transform: scale(1); }
    70%     { opacity: 0.5; transform: scale(1); }
    100%    { opacity: 0.5; }
}
@keyframes gm-charge-fg {
    0%      { opacity: 0; transform: scale(1.6) rotate(0deg); }
    45%     { opacity: 1; transform: scale(1.2) rotate(160deg); }
    80%     { opacity: 0.5; transform: scale(1.2) rotate(160deg); }
    100%    { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}
@keyframes gm-discharge-bg {
    0%      { opacity: 0; transform: scale(1.1); }
    2%      { opacity: 1; transform: scale(1); }
    40%     { opacity: .8; transform: scale(1.2); }
    100%    { opacity: 0; transform: scale(1.6); }
}
@keyframes gm-discharge-fg {
    0%      { opacity: 0; transform: scale(1.4) rotate(0deg); }
    2%      { opacity: 1; transform: scale(1.2) rotate(-2deg); }
    40%     { opacity: .8; transform: scale(1.4) rotate(-47deg); }
    100%    { opacity: 0; transform: scale(1.6) rotate(-50deg); }
}
@keyframes gm-discharge-overlay {
    0%      { opacity: 0; transform: scale(1.2); }
    2%      { opacity: 1; transform: scale(1); }
    40%     { opacity: .8; transform: scale(1.2); }
    100%    { opacity: 0; transform: scale(1.4); }
}
@keyframes feedback-pop {
    0%      { opacity: 0; transform: scale(1.2) rotate(16deg); }
    30%     { opacity: 1; transform: scale(1) rotate(0deg); }
    80%     { opacity: 1; transform: scale(1) rotate(0deg); }
    100%    { opacity: 0; transform: scale(.9) rotate(8deg); }
}
@keyframes feedback-bg-appear {
    0%   { opacity: 0; background-position-y: -100px; }
    10%  { opacity: .7; background-position-y: 0; }
    80%  { background-position-y: -100px; }
    100% { opacity: .6; background-position-y: -150px; }
}

@keyframes pictogram-slide {
    0%   { margin-left: 400px; }
    90%  { margin-left: 0; margin-bottom: 0; opacity: 1; filter: brightness(1); }
    100% { margin-bottom: 15px; opacity: 0; filter: brightness(2); }
}
@keyframes pictograms-beat {
    0%, 100% { opacity: .3; }
    50%      { opacity: .8; }
}

@keyframes receive-star {
    0%       { opacity: 0; transform: rotate(-135deg) scale(1); filter: brightness(1); }
    70%, 95% { filter: brightness(1.2); }
    80%      { opacity: 1; transform: rotate(45deg) scale(1.5); }
    100%     { opacity: 1; transform: rotate(0deg) scale(1); filter: brightness(1); }
}
@keyframes star-beat {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50%      { transform: rotate(-15deg) scale(1.2); }
}

@font-face {
    font-family: "JD";
    src: url("../fonts/JD_Regular.ttf");
}
@font-face {
    font-family: "JD";
    src: url("../fonts/JD_Bold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: "OpenSans SemiBold";
    src: url("../fonts/OpenSans-SemiBold.woff");
    font-weight: bold;
}

video {
    pointer-events: none;
}

body {
    margin: 0;
    font-family: "JD", sans-serif;
    font-size: 24pt;
    color: #fff;
    overflow-x: hidden;
}

body.loading * { transition: none; }

h1, h2 {
    margin: 0;
    font-size: 36pt;
}

h2 {
    font-size: 24pt;
    font-weight: normal;
}

section {
    width: 100%;
    background-size: cover;
    background: #fff center;
}

.muted { opacity: .6; }

.transition {
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 100;
    visibility: collapse;
    background: none;
}
.transition.animated { animation: show-transition 4s ease-in-out forwards; }
.transition > div {
    position: absolute;
    width: 150%;
    height: 50%;
    z-index: 1;
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
.transition > .upper-bg {
    left: -25%;
    background: #059;
}
.transition > .upper-letter {
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -320px;
    margin-top: -200px;
    background: url("../img/logo.svg");
    border-radius: 100px;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, .2);
    z-index: 2;
}
.transition > .upper-text {
    width: 440px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -120px;
    margin-top: -200px;
    background: url("../img/logo.svg") -200px 0;
}
.transition > .lower-bg {
    right: -25%;
    background: #e50;
    bottom: 0;
}
.transition > .lower-letter {
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -320px;
    background: url("../img/logo.svg") 0 200px;
    border-radius: 100px;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, .2);
    z-index: 2;
}
.transition > .lower-text {
    width: 440px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -120px;
    background: url("../img/logo.svg") -200px 200px;
}
.transition.animated > .upper-bg        { animation-name: show-transition-upper-bg; }
.transition.animated > .upper-letter    { animation-name: show-transition-upper-letter; }
.transition.animated > .upper-text      { animation-name: show-transition-text; }
.transition.animated > .lower-bg        { animation-name: show-transition-lower-bg; }
.transition.animated > .lower-letter    { animation-name: show-transition-lower-letter; }
.transition.animated > .lower-text      { animation-name: show-transition-text; }

.pregame {
    position: absolute;
    display: flex;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("../img/bg/pregame.jpg");
}

.greeting {
    font-size: 48pt;
    text-align: center;
    margin: 0 0 200px;
    text-shadow: 0 5px 0 rgba(0, 0, 0, .2);
}

.greeting-comment {
    font-size: 14pt;
    position: absolute;
    bottom: 20px;
    margin: 0;
    opacity: 0;
    transition: all .8s linear;
}
.greeting-comment.shown {
    opacity: .6;
}

.start-btn {
    position: absolute;
    bottom: 30%;
    margin-bottom: -128px;
    width: 256px;
    height: 256px;
    background: url("../img/ui/start-btn.png") no-repeat center;
    background-size: contain;
    border: 0;
    outline: none;
    cursor: pointer;
    transition: all .15s cubic-bezier(.5, .5, .5, 2);
    z-index: 1;
}

.start-btn:hover { transform: scale(1.15); }
.start-btn:active { transform: scale(1.1); filter: brightness(80%); }
.start-btn.hidden {
    visibility: collapse;
    opacity: 0;
    transform: scale(1.5);
    transition: all .4s linear;
}

.lobby {
    display: none;
    padding-top: 120px;
    min-height: calc(100vh - 120px);
    justify-content: flex-start;
    background-image: url("../img/bg/coverflow.jpg");
    background-position: center top;
    transition: all .8s ease-in;
}
.lobby.shown {
    overflow-x: auto;
    display: flex;
    animation: show-lobby .8s ease-in;
}
.lobby > div { z-index: 0; }

.dance-bg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
    animation-duration: .2s;
    transition: opacity .4s linear;
}
.dance-bg.shown { opacity: 1; }
.dance-bg.beat { animation-name: scale-beat; }

.token-qr-code {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    margin: 20px;
    padding: 10px 0 2px 0;
    cursor: pointer;
    font-family: monospace;
    font-size: 8pt;
    color: #00a;
    background-repeat: no-repeat;
    background-color: #fff;
    background-size: contain;
    border-radius: 10px;
    opacity: 0;
    transform: scale(1.2);
    z-index: 1;
}
.token-qr-code.shown {
    opacity: 1;
    transform: scale(1);
    transition: .2s all ease-in-out;
}
.token-qr-code.big {
    width: 50vh;
    height: 50vh;
    top: 50%;
    left: 50%;
    margin: -25vh 0 0 -25vh;
    box-shadow: 0 0 25vh rgba(0, 0, 0, .5);
    border-radius: 3vh;
    font-size: 4vh;
    transition: .3s all ease-out;
}
body.video-mode .token-qr-code { display: none; }

.players {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 150px;
    right: 10px;
    height: 140px;
    z-index: 10;
}
.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    height: 140px;
    margin-top: -30px;
    opacity: .75;
    transition: opacity .1s linear, margin-top .1s ease-in-out;
}
.player.ready {
    margin-top: -20px;
    opacity: 1;
}
.player-feedback {
    --color: #ff8080;
    --label-offset: 0;
    position: relative;
    width: 100%;
    display: none;

    &.feedback { display: block; }
    &.feedback-1 { --color: #fff480; --label-offset: -116px; }
    &.feedback-2 { --color: #ff80ff; --label-offset: -232px; }
    &.feedback-3 { --color: #80e5ff; --label-offset: -348px; }
    &.feedback-4 { --color: #b7f38c; --label-offset: -464px; }
    &.feedback-5 { --color: #fff480; --label-offset: -580px; }

    & > .label {
        position: absolute;
        width: 150px;
        height: 116px;
        margin-top: 90px;
        background: url("../img/feedback-labels.png") 0 var(--label-offset);
        background-size: 100%;
        animation: feedback-pop .8s ease-in-out forwards;
        z-index: 1;
    }
    & > .bg {
        position: absolute;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle at center top, var(--color) 50px, #0000 150px) no-repeat center 0;
        animation: feedback-bg-appear 1.5s ease-in-out forwards;
    }
}
.player-label {
    height: 20px;
    width: 80px;
    background: red;
    margin: 35px 0 20px;
    border: 2px solid #fff;
    border-radius: 10px;
    z-index: 1;
}
.player-avatar {
    position: absolute;
    margin: -6px 0 0 40px;
    height: 100px;
    width: 100px;
    background-size: contain;
    background-image: url("../img/avatars/0.png");
    background-repeat: no-repeat;
    z-index: 1;
}
.player-stars {
    position: absolute;
    display: flex;
    justify-content: center;
    margin: 75px 0 0 0;
}
.player-star.star {
    width: 32px;
    height: 32px;
    margin-left: -8px;
}
.player-username {
    font-family: "OpenSans SemiBold", sans-serif bold;
    font-size: 16pt;
    text-shadow: 0 0 2px rgba(0, 0, 0, .8);
    margin-top: 25px;
    z-index: 1;
}
.player-star.star.received::before {
    width: 32px;
    height: 32px;
}

.camera {
    position: absolute;
    top: 20px;
    left: 20px;
    box-shadow: #000 0 0 8px;
    background: #fff;
    border-radius: 5px;
    z-index: 1;
    overflow: hidden;
    transition: all 1s ease-in-out;
}
.camera.big {
    width: 100vw;
    height: 100vw;
    left: 0;
    margin-left: 0;
    border-radius: 0;
}
.camera > video {
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}
.camera .overlays, .camera .canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.camera .overlays {
    display: flex;
    opacity: .2;
}
.camera .overlays > div { flex: 1; }
body.smartphone-mode .camera { display: none; }

.dances {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 200px;
    min-height: 580px;
    max-height: calc(100vh - 180px);
    margin: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .6);
    overflow-y: auto;
    scrollbar-width: none;
    transition: all .4s ease-in-out;
}
.lobby.predance .dances, .lobby.afterdance .dances {
    min-width: 0;
    flex: 0;
    padding: 10px 0;
    margin: 20px 0;
}
.dances::-webkit-scrollbar { width: 0 !important }

.dance-item {
    display: flex;
    background: rgba(0, 0, 0, 0);
    max-height: 120px;
    padding: 10px;
    margin: 5px;
    color: #00a;
    border-radius: 10px;
    cursor: pointer;
    animation-duration: .2s;
    transition: all .2s ease-in-out;
    flex-direction: row;
}
.dance-item:hover, .dance-item.selected {
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    margin-left: 20px;
}
.dance-item.beat { animation-name: scale-beat; }
.dance-img {
    min-width: 120px;
    min-height: 120px;
    background-image: url("");
    background-size: cover;
    border-radius: 10px;
    margin-right: 20px;
}
.dance-captions {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.dance-captions > p {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
}
.dance-captions > .dance-title {
    font-size: 26pt;
    font-weight: bold;
}
.dance-captions > .dance-author { font-size: 18pt; }

.scores {
    display: flex;
    flex-direction: column;
    min-height: 580px;
    max-height: calc(100vh - 180px);
    border-radius: 10px;
    background: rgba(255, 255, 255, .6);
    overflow: hidden;
    flex: 0;
    padding: 10px 0;
    margin: 20px 0;
    transition: all .4s ease-in-out;
}
.lobby.afterdance .scores {
    flex: 1;
    margin: 20px;
    padding: 10px 20px;
}
.score {
    display: flex;
    flex-direction: row;
}
.score-username {
    font-family: "OpenSans SemiBold", sans-serif bold;
    font-size: 24px;
    margin: 0 10px 0 0;
    width: 120px;
    color: #00a;
    text-overflow: ellipsis;
    overflow: hidden;
}
.score-bar {
    width: 0;
    font-family: "OpenSans SemiBold", sans-serif bold;
    font-size: 14px;
    padding: 0 5px 0 0;
    color: #fff;
    background: #f00;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.score-avatar {
    margin: -5px 0 0 5px;
    height: 32px;
    width: 32px;
    background-size: contain;
    background-image: url("../img/avatars/0.png");
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(2);
}

.current-dance {
    display: flex;
    flex-direction: column;
    color: #00a;
    padding: 25px 20px 0 20px;
    margin: 0;
    min-height: 595px;
    max-height: calc(100vh - 165px);
    max-width: 525px;
    visibility: hidden;
    opacity: 0;
    text-shadow: 0 0 20px #fff;
    transition: .2s all linear;
}
.current-dance.shown {
    visibility: visible;
    margin-top: 0;
    opacity: 1;
}
.dance-preview-video {
    width: 525px;
    height: 295px;
    margin-bottom: 20px;
    box-shadow: 0 0 0 6px #fffa;
    border-radius: 20px;
    background: url("../img/spinner.svg") #fffd no-repeat center;
    background-size: 80px;
}
.current-dance-title {
    font-weight: bold;
}
.pick-dance-btn {
    font-size: 42pt;
    font-family: "JD", sans-serif;
    font-weight: bold;
    text-align: left;
    outline: none;
    border: 5px solid transparent;
    color: #00a;
    margin-top: auto;
    padding: 20px 30px;
    border-radius: 20px;
    cursor: pointer;
    height: 60px;
    background: rgba(255, 255, 255, .8);
    overflow-y: hidden;
    animation-duration: .2s;
}
.pick-dance-btn.beat { animation-name: scale-beat; }
.pick-dance-btn > div {
    margin-bottom: 30px;
    background-size: auto 80%;
    transition: all .1s ease-in-out, margin-top .4s ease-in-out;
}
.pick-btn-slide { background: url("../img/ui/arrow-right.png") right center no-repeat; }
.pick-dance-btn:hover .pick-btn-slide { transform: translateX(10px); }
.back-btn-slide {
    background: url("../img/ui/arrow-left.png") left center no-repeat;
    text-align: right;
}
.pick-dance-btn:hover .back-btn-slide { transform: translateX(-10px); }
.lobby .pick-btn-slide:first-child { margin-top: -85px; }
.lobby.predance .pick-btn-slide:first-child { margin-top: -174px; }
.lobby.afterdance .pick-btn-slide:first-child { margin-top: 0; }
.pick-dance-btn:active { box-shadow: inset 0 0 15px rgba(0, 0, 0, .1); }

.coaches {
    display: flex;
    justify-content: center;
    min-width: 0;
    flex: 0;
    padding: 20px 0;
    margin: 20px 0;
    min-height: 560px;
    max-height: calc(100vh - 200px);
    border-radius: 10px;
    background: rgba(255, 255, 255, .6);
    overflow-y: auto;
    overflow-x: hidden;
    transition: all .4s ease-in-out;
}
.lobby.predance .coaches {
    min-width: 800px;
    flex: 1;
    display: flex;
    padding: 20px;
    margin: 20px;
}
.coach {
    width: 180px;
    margin: 0 10px;
}
.coach-img {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.coach-player {
    background: red;
    font-size: 16pt;
    padding: 0 15px 5px 15px;
    margin-bottom: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 100px;
    animation: coach-player-appear .2s ease-out;
}
.coach-player.ready { padding-right: 35px; }
.coach-player.ready::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 8px 0 0 130px;
    background-size: cover;
    background-color: #fff;
    -webkit-mask-image: url("../img/icons/check.svg");
    mask-image: url("../img/icons/check.svg");
}
.recording {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 10px;
    padding: 2px 10px 5px 10px;
    font-family: "OpenSans SemiBold", sans-serif bold;
    font-size: 24pt;
    color: #e34;
    background: #fff8;
    backdrop-filter: blur(4px);
    z-index: 11;

    &::after {
        content: "";
        position: relative;
        display: inline-block;
        min-width: 20px;
        min-height: 20px;
        margin: 12px 0 0 10px;
        border-radius: 10px;
        background: #f33;
        animation: recording-pop 1s ease-in-out infinite;
    }

    &.visible {
        display: block;
    }
}

section.dance {
    position: absolute;
    display: none;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
section.dance.shown { display: block; }
.dance-video {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    background: url("../img/spinner.svg") #000 no-repeat center;
    background-size: 128px;
}

.pictograms-belt {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 400px;
    border-bottom: 2px solid rgba(255, 255, 255, .8);
}
.pictograms-beat {
    height: 100px;
    width: 180px;
    opacity: .3;
    background-image: linear-gradient(
        to top,
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0)
    );
}
.pictograms-beat.beat { animation: pictograms-beat .2s linear forwards; }
.pictogram {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: scale(.5);
    transform-origin: bottom left;
    animation: pictogram-slide 2.2s linear forwards;
}

.sidebar {
    position: absolute;
    left: 0;
    bottom: 140px;
    width: 120px;
    top: 140px;
    border-bottom: 2px solid rgba(255, 255, 255, .8);
    overflow-y: hidden;
}
.player-bars-bg {
    width: 50px;
    height: 100%;
    margin-left: auto;
    display: flex;
    background: rgba(0, 0, 0, .3);
    border: 2px solid rgba(255, 255, 255, .5);
    border-top: none;
    transform: translateY(100%);
    margin-top: -100px;
    mask-image: linear-gradient(
        to top,
        #000 80%,
        transparent
    );
}
.player-bars {
    position: absolute;
    display: flex;
    align-items: flex-end;
    height: 100%;
    width: 50px;
    margin-left: 68px;
    bottom: 0;
}
.player-bar {
    flex: 1;
    height: 0;
    background: #f55;
    border-radius: 4px 4px 0 0;
    transition: height .2s ease-in-out;
}
.sidebar-stars {
    position: absolute;
    display: flex;
    height: 85%;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0 0 65px;
    z-index: 1;
}
.star {
    width: 64px;
    height: 64px;
    margin-left: -32px;
    background: url("../img/stars/empty-star.png") no-repeat center;
    background-size: cover;
    transform: rotate(-15deg);
    will-change: transform;
}
.star.beat { animation: star-beat .2s linear; }
.star.received::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    background-image: url("../img/stars/star.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0;
    animation: receive-star 1s ease-in-out forwards;
}

.gold-moves { pointer-events: none; }
.gold-moves > div {
    position: absolute;
    width: 100vw;
    height: 100vw;
    top: 50vh;
    left: 0;
    margin-top: -50vw;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}
.gold-moves > .gold-move-0 { background-image: url("../img/gold-move/0.png"); }
.gold-moves > .gold-move-1 { background-image: url("../img/gold-move/1.png"); }
.gold-moves > .gold-move-2 { background-image: url("../img/gold-move/0.png"); }
.gold-moves > .gold-move-overlay {
    width: 100vw;
    height: 100vh;
    top: 0;
    margin-top: 0;
    background-image: url("../img/gold-move/overlay.png");
}

.gold-moves.charge > .gold-move-0           { animation: gm-charge-bg 3s ease-out; }
.gold-moves.charge > .gold-move-1           { animation: gm-charge-fg 3s ease-out; }
.gold-moves.discharge > .gold-move-0        { animation: gm-discharge-bg 1s ease-in; }
.gold-moves.discharge > .gold-move-2        { animation: gm-discharge-fg 1.2s ease-in; }
.gold-moves.discharge > .gold-move-overlay  { animation: gm-discharge-overlay 1.2s ease-in; }


.lyrics {
    --color: #fff;
    --color-overlay: red;
    position: absolute;
    bottom: 40px;
    left: 70px;
    font-size: 16pt;
    height: 42pt;
    overflow: hidden;
}

.lyrics > p {
    margin: 0 0 0 2px;
    height: 30px;
    transition: all .2s linear;
}

.syllable {
    position: relative;
    white-space: nowrap;
    color: transparent;
    background-clip: text !important;
    background: linear-gradient(to right, var(--color) 0%, var(--color) 50%, var(--color-overlay) 50%) 0 0;
    background-size: 200% 100%;
    transition: background-position 0s ease;

    &.sung {
        background-position: -100% 0;
    }
}
