.lobby-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
}
@keyframes dock {
    from {
        transform: translateX(-200%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.dock {
    min-width: 22rem;
    padding: 1rem;
    transform: translateX(-200%);
    opacity: 0;
    animation: dock 1.8s cubic-bezier(0.1, 0.87, 0.14, 0.99) forwards;
}
.dock .inner {
    padding: 1rem;
    height: 100%;
    width: 100%;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: end;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3), inset 0 -1rem 6rem rgba(255, 255, 255, 0.05);
}
.dock button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.dock-segment {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 1rem;
    gap: 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3), inset 0 -1rem 6rem rgba(255, 255, 255, 0.05);
}
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.action-buttons button {
    flex: 1;
    margin: 0;
}
.dock-segment .flex input {
    margin: 0;
}

.set-rounds input {
    height: 1rem;
    padding: 1rem 0 1rem 1rem;
}

@media screen and (max-width: 1000px) {
    #mainMenu {
        overflow: auto;
    }
}

.mainMenu {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    flex-grow: 1;
}
.mainMenu > div {
    max-width: 33vw;
}
@keyframes logo {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes logoEasterEgg {
    from {
        filter: sepia(10) saturate(5) hue-rotate(0deg);
    }
    to {
        filter: sepia(10) saturate(5) hue-rotate(360deg);
    }
}
.logo-container {
    width: 20rem;
    padding: 2rem;
    height: min-content;
    z-index: 0;
    animation: logo 0.7s 0.5s cubic-bezier(0.67, 0.51, 0.16, 2.06) forwards;
}

.logo-container img {
    max-width: 100%;
    filter: invert();
}
@keyframes lobby {
    from {
        transform: translateX(200%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.lobby {
    margin: 1rem;
    padding: 1rem;
    border-radius: 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3), inset 0 -1rem 6rem rgba(255, 255, 255, 0.05);
    height: calc(100%-2rem);
    min-width: 25rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    animation: lobby 1.8s cubic-bezier(0.1, 0.87, 0.14, 0.99) forwards;
}
.lobby button {
    margin: 0;
    flex: 1;
}
.lobby h1 {
    text-wrap: nowrap;
    text-transform: uppercase;
    margin: 1rem 1rem -1rem 1rem;
}
.lobby .inner {
    flex: 1;
    padding: -1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 0 -1rem 1rem -1rem;
    overflow-y: auto;
    --mask: linear-gradient(to top, rgba(0, 0, 0, 0) 0, rgb(0, 0, 0) 2rem, rgb(0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%) 100% 50% / 100% 100% repeat-x;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}

.players .player {
    min-width: 15rem;
    display: flex;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    margin: 1rem 1rem 0 1rem;
    transition: 0.2s ease;
    box-shadow: inset 0 -2rem 4rem rgba(255, 255, 255, 0.07), 0 1rem 1rem rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 5rem;
    align-items: center;
}
.player h3 {
    margin-right: 4rem;
}
.players .player p {
    display: flex;
    align-items: center;
}
.players .player .perkicon {
    max-height: 1.1rem;
}

.players .player img {
    height: 100%;
    aspect-ratio: 1.5/1;
    object-fit: cover;
    --mask: linear-gradient(to left, rgba(0, 0, 0, 0) 0, rgb(0, 0, 0) 2rem, rgb(0, 0, 0) 100%, rgba(0, 0, 0, 0) 100%) 100% 50% / 100% 100% repeat-x;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}
.players .player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
}

.lobby .flex {
    align-items: end;
}

.players {
    overflow-y: auto;
    width: 100%;
}
.players-panel {
    max-height: 90vh;
}
.players-panel .flex {
    align-items: start;
}
.players-panel h2 {
    margin-bottom: 1rem;
}

.players-panel .images {
    display: flex;
    flex-wrap: wrap;
    max-height: 40vh;
    max-width: 30rem;
    overflow: auto;
    margin: -0.5rem 0;
    padding-top: 1rem;
    padding-bottom: 2rem;
    --mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgb(0, 0, 0) 2rem, rgb(0, 0, 0) 90%, rgba(0, 0, 0, 0) 100%) 100% 50% / 100% 100% repeat-x;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}
.players-panel .images img:hover {
    transform: scale(1.1);
    outline: 3px solid white;
}

.save-btn-footer {
    display: flex;
    justify-content: end;
}
.save-btn-footer button {
    margin: 0;
}
.players-panel .images img {
    max-height: 4rem;
    margin: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.5);
    outline: none;
    transition: 0.2s ease;
}
.players-panel .images input {
    display: none;
}
.players-panel .images input[type="radio"]:checked + img {
    outline: 3px solid white;
}

.players-panel .inner .players {
    padding: 0 0 2rem 0;
    margin: -1rem 1rem 1rem -1rem;
    overflow-y: auto;
    height: 60vh;
    --mask: linear-gradient(to top, rgba(0, 0, 0, 0) 0, rgb(0, 0, 0) 2rem, rgb(0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%) 100% 50% / 100% 100% repeat-x;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}
.players-container {
    width: 40vw;
    max-width: 25rem;
}
.camera .footer button {
    margin: 0;
}
.camera .footer {
    justify-content: end;
}
.camera video {
    border-radius: 1rem;
    margin-bottom: 1rem;
    height: 60vh;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.camera:after {
    content: "";
    position: absolute;
    inset: 20%;
    border: 5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}
.addmenu {
    width: 40vw;
    max-width: 30rem;
}
.player .remove-btn {
    position: absolute;
    right: 0.5rem;
    margin: 0;
}
.player .addback-btn {
    position: absolute;
    right: 3.2rem;
    margin: 0;
}
.noPlayers {
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}
input {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#difficultySelector {
    display: flex;
    align-items: center;
}
#difficultySelector .difficulty-option {
    width: unset;
    margin: 1rem 0 1rem 0rem;
    position: relative;
}
/* .difficulty-option:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: small;
    width: max-content;
    max-width: 200%;
    text-wrap: wrap;
} */
.difficulty-option.selected {
    background-color: #ffffff;
    color: black;
}
.gameMenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gameButtons {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    height: 8rem;
}
.gameButtons button {
    height: 6rem;
    width: 8rem;
    font-size: larger;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.gameButtons button::before {
    content: "";
    z-index: -1;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    filter: blur(1rem);
    animation: btnBlink 4s ease infinite;
}
.gameButtons button img {
    min-height: 2rem;
    margin: 0;
}
@keyframes btnBlink {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}
.leaderboard {
    position: relative;
    display: flex;
    --mask: linear-gradient(to left, rgba(0, 0, 0, 0) 0, rgb(0, 0, 0) 2rem, rgb(0, 0, 0) 95%, rgba(0, 0, 0, 0) 100%) 100% 50% / 100% 100% repeat-x;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    padding: 0;
    margin-left: -1rem;
    padding-left: 1rem;
}
.leaderboard .players {
    position: relative;
    display: flex;
    gap: 1rem;
    flex-direction: row;
    overflow: hidden;
}
.leaderboard .plyr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.leaderboard .player-info {
    margin: 0;
}
.leaderboard .plyr img {
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    margin-bottom: -1rem;
}
.leaderboard .plyr:nth-child(1) img {
    border: 3px solid rgba(255, 217, 0, 0.6);
}
.leaderboard .plyr:nth-child(2) img {
    border: 3px solid rgba(192, 192, 192, 0.8);
}
.leaderboard .plyr:nth-child(3) img {
    border: 3px solid rgba(165, 79, 42, 0.8);
}
.leaderboard .plyr .player-info {
    position: relative;
    max-width: 6rem;
    white-space: nowrap;
    z-index: 0;
}

.leaderboard .plyr h4 {
    overflow: hidden;
    max-width: 5rem;
}
.leaderboard .plyr .player-info:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 0 0 1rem 0;
    filter: blur(1rem);
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}
.qr-container {
    margin-top: 1rem;
}
#qrKep {
    width: 4rem;
    height: 4rem;
    transition: 0.2s ease;
}

#qrKep:hover {
    height: 30vh;
    width: auto;
}

.code-window {
    position: absolute;
    bottom: 1rem;
    transform: translateY(200%);
    animation: codewin 0.5s 2s ease forwards;
}
.code-window:before {
    content: "Cursor Enlarges QR Code";
    position: absolute;
    top: -2rem;
    left: 0;
    opacity: 0;
    animation: enlarge 5s 2s ease 2s 2 forwards;
}
@keyframes enlarge {
    0% {
        transform: translateY(200%);
        opacity: 0;
    }
    50% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}
@keyframes codewin {
    from {
        transform: translateY(200%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.code-window button {
    margin: 0;
    padding: 0.7rem;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}
.code-window p {
    font-size: smaller;
}
.code-window .hostcode {
    color: #14d2b3;
    margin: 0.2rem 0 0.2rem 0;
}

.code-window a {
    text-decoration: underline;
    cursor: pointer;
}
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100vh;
    height: 100vh;
}
button.hidden {
    display: none;
}
.info-panel .desc {
    overflow: auto;
    height: 60vh;
}
.current {
    display: flex;
    gap: 10px;
    pointer-events: none;
    backdrop-filter: blur(1rem);
    box-shadow: inset 0 -1rem 2rem rgba(255, 255, 255, 0.1), 0 1rem 2rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.current.perk::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 7rem;
    height: 1rem;
    background: #ff00e6;
    background: linear-gradient(90deg, rgba(255, 0, 230, 1) 0%, rgba(7, 245, 205, 1) 100%);
    filter: blur(1rem);
    animation: perkRotate 10s linear infinite;
}
@keyframes perkRotate {
    0% {
        transform: rotate(0deg);
        filter: brightness(1) blur(1rem);
    }
    50% {
        filter: brightness(2) blur(1rem);
    }
    100% {
        transform: rotate(360deg);
        filter: brightness(1) blur(1rem);
    }
}
