* {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;

    user-select: none;
    -webkit-user-select: none;

    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-drag: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;

    font-family: 'GG Sans', sans-serif;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;

    height: 100vh;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    background: #101010;
    color: #fff;
    border: none;
    border-bottom: 1px solid #404040;
    border-radius: 5px;
    padding: 8px 12px;
    width: fit-content;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85em;
    min-width: 100px;
}

button:active {
    background: #404040;
}

hr {
    border: none;
    height: 2px;
    background-color: #ffffff30;
    border-radius: 100px;
    margin: 2px 0;
}

.main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    justify-items: center;
    align-items: center;

    gap: 15px;
    padding: 5px;
    box-sizing: border-box;

    width: 100%;
    height: 100%
}

.player-counter {
    position: relative;
    background-color: #663399;
    border-radius: 15px;
    display: flex;

    width: 100%;
    height: 100%;
    overflow: hidden;
}

.player-counter.highlight::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background-color: #ffffff50;
    border-radius: 10px;
    box-sizing: border-box;
    pointer-events: none;
}

#player-0.player-counter {
    background-color: #BCB2A2;
}

#player-1.player-counter {
    background-color: #201f1f;
}

#player-2.player-counter {
    background-color: #0584F1;
}

#player-3.player-counter {
    background-color: #FF77A1;
}

.player-life {
    font-size: 3rem;
    text-shadow: 0 2px 5px #00000050;
    font-weight: 800;
    margin: auto;
}

.life-button {
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
}

.life-button:active {
    background-color: #00000060;
}

.options-button {
    position: fixed;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 60px;
    height: 60px;

    background-color: #00000060;
    border-radius: 50px;
}

.options {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;

    max-width: 400px;
    max-height: 600px;

    background-color: #40404060;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1rem;
    box-sizing: border-box;
    box-shadow: 0 5px 15px #000000aa;

    flex-direction: column;
    gap: 5px;

    overflow: scroll;
    overflow-x: hidden;

    display: none;
    transition: opacity 0.2s ease;

    scrollbar-width: none;
}

.options.open {
    display: flex;
    opacity: 1;
}

.options.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.buttons-div {
    display: flex;
    gap: 5px;
}

.modal-bottom {
    margin-top: auto;
    display: flex;
    justify-content: end;
    gap: 5px;
    border-top: 3px solid #ffffff25;
    padding-top: 3px;
}

.probabilities {
    justify-content: space-evenly;
    align-items: center;
}

.probibility {
    background-color: transparent;
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    border-radius: 100px;
    padding: 0;
    min-width: 0;
}

.probibility svg {
    display: block;
    width: 100%;
    height: 100%;
}

.probibility:active {
    opacity: 0.7;
    background-color: transparent;
}

.coin-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.coin-outer.show {
    opacity: 1;
    pointer-events: all;
}

.coin {
    background-color: #000000bb;
    border-radius: 300px;
    padding: 1rem;
    font-size: 6.5rem;
    font-weight: 600;
    box-sizing: border-box;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 350px;
}