:root {
    --action-color: #e67d2f;
    --link-color: #3f88cc;
    --dark-accent-rgb: 46, 69, 87;
    --dark-accent: rgb(var(--dark-accent-rgb));
    --light-accent: rgb(72, 122, 156);
    --back-color: linear-gradient(to top, var(--dark-accent), var(--light-accent));
    --back-color1: rgba(var(--dark-accent-rgb), 0.73);
    --back-color2: rgba(var(--dark-accent-rgb), 0.93);
    --hole-color: rgba(var(--dark-accent-rgb), 0.3);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background: url('../images/momo2/background.jpg') no-repeat center fixed;
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

html, body, div {
    touch-action: manipulation;
}

.build {
    user-select: none;
    position: absolute;
    bottom: 12vh;
    color: rgba(0, 0, 0, 0.2);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.header .title {
    font-size: 2.1em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 2px black;
    text-align: center;
    flex: 1;
    margin: 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.title.pvp {
    font-size: 4em;
    margin-top: 15px;
}

.header .round-button, .tabs .round-button {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background-color: var(--back-color2);
    border: 2px solid rgb(56 57 57);
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1;
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tabs .round-button{
    margin-left: 10px;
}

.cloud {
    user-select: none;
    z-index: 1;
    top: 100px;
    display: none;
    text-align: center;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    font-size: 20px;
}

.nav-button {
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    width: 49vw;
    height: 8vh;
    background-color: var(--back-color2);
    font-size: 3vh;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    bottom: 0;
    z-index: 20;
    font-weight: 200 !important;
}

.left-nav {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding-left: 10px;
    text-align: left;
    left: 0px;
}

.right-nav {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding-right: 10px;
    text-align: right;
    right: 0px;
}

.nav-button:active {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.center-nav {
    padding-top: 2.5vh;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22vh;
    height: 11vh;
    background: var(--back-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 22vh 22vh 0 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5vh;
    font-weight: 200 !important;
    color: #ffffff;
    text-shadow: 3px 3px 3px black;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    z-index: 30;
}

.center-nav:active {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.promt {
    user-select: none;
    width: 80%;
    position: absolute;
    top: 100px;
    background-color: var(--back-color1);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    display: none;
}

.scoreboard {
    user-select: none;
    width: 35%;
    position: absolute;
    top: calc(32% + 90px);
    background-color: var(--back-color1);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    display: none;
}

    .scoreboard.top {
        background-color: var(--back-color2);
        top: 12%;
    }

.column.left {
    position: absolute;
    top: 32%;
    left: 18px;
}

.column.right {
    position: absolute;
    top: 32%;
    right: 18px;
}

.hole {
    width: 80px;
    height: 80px;
    background-color: var(--hole-color);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    animation: gradientShift 3s ease infinite;
    margin-bottom: 5px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.mole {
    width: 80px;
    height: 80px;
    background-size: cover;
    position: absolute;
    bottom: -100%;
    transition: bottom 0.3s;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hole.up .mole {
    bottom: 0;
}

.mole.good {
    background-image: url('../images/good.png');
}

.mole.bad {
    background-image: url('../images/bad.png');
}

.mole.bad2 {
    background-image: url('../images/bad2.png');
}

.mole.life {
    background-image: url('../images/life.png');
}

.mole.special {
    background-image: url('../images/special.png');
}

.mole.hype {
    background-image: url('../images/hype/ton.png');
}


.nft-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.nft-button {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin-top: 5px;
    padding: 5px;
    flex: 1;
    user-select: none;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    text-shadow: 1px 1px 1px black;
}

.nft-button.buy-link {
        background-color: var(--link-color);
    }

.nft-button.nft-refresh {
        background-color: var(--action-color);
    }

.hole.splash {
    animation: holeSplash 0.1s ease-in-out;
}


@keyframes holeSplash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}




.pending {
    position: relative;
    pointer-events: none;
}

    .pending::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(1px);
        z-index: 2;
        border-radius: 10px;
    }

    .pending::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        border: 4px solid rgba(255, 255, 255, 0.6);
        border-top: 4px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
        z-index: 3;
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.loading {
    position: relative;
    min-height: 60px;
    opacity: 0.6;
    pointer-events: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    overflow-y: auto;
}

    .loading::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(1px);
        z-index: 2;
    }

    .loading::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.6);
        border-top: 4px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
        z-index: 3;
    }

.loadingOverlay {
    display: flex;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

    .loadingOverlay::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(1px);
        z-index: 2;
    }

    .loadingOverlay::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.6);
        border-top: 4px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
        z-index: 3;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}


.modal-content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 60%;
    max-width: 400px;
    animation: fadeIn 0.3s ease-in-out;
    user-select: none;
    background-color: rgb(61 61 61 / 90%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    font-weight: 700;
}

    .modal-content h2 {
        margin: 0px;
    }


/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal button {
    background-color: var(--action-color);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: 2px 2px 2px black;
    font-size: 15px;
}

    .modal button.link {
        background-color: var(--link-color);
        width: -webkit-fill-available;
    }


.glow {
    /*box-shadow: 0 0 15px 5px rgba(196, 255, 203, 0.6), inset 0 0 15px 5px rgba(196, 255, 203, 0.4);*/
    box-shadow: 0 0 15px 5px rgb(255 255 255 / 100%), inset 0 0 15px 5px rgb(255 255 255 / 100%);
    transition: box-shadow 0.2s ease-in-out;
}

.hard-mode .glow {
    /*box-shadow: 0 0 15px 5px rgba(196, 255, 203, 0.6), inset 0 0 15px 5px rgba(196, 255, 203, 0.4);*/
    box-shadow: 0 0 15px 5px rgba(255 0 0 / 70%), inset 0 0 15px 5px rgba(255 0 0 / 70%);
    transition: box-shadow 0.2s ease-in-out;
}

.user-result {
    text-align: center;
    font-size: 13px;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: black;
}

.momo-user-result {
    width: 90%;
    margin-top: 15px;
    margin-bottom: 14vh;
}

.user-result p {
    margin: 4px 0;
}

@media (device-width> 375px) and (device-height> 667px) {
    .hole, .mole {
        width: 90px;
        height: 90px;
    }
}


@media (device-height > 840px) {
    .center-button {
        width: 18vh;
        height: 9vh;
        border-radius: 18vh 18vh 0 0;

        font-size: 4vh;
        padding-top: 1.1vh;
    }

    .nav-button {
        font-size: 2.5vh;
    }
}


.info-container {
    scroll-behavior: smooth;
    user-select: none;
    flex: 1;
    overflow-y: auto;
    width: 90%;
    margin-bottom: 14vh;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.info-container h2{
    margin: 5px;
    text-align: center;
}

.info-container p {
    text-align: justify;
    font-size: 16px;
}


.info-nav {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
}

.info-section > a {
    display: block;
    padding: 5px 0;
    color: var(--link-color);
    text-decoration: none;
}

.info-section p > a {
    padding: 5px 0;
    color: var(--link-color);
    text-decoration: none;
}

.info-section {
    background-color: rgb(255, 255, 255);
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.scroll-up {
    padding: 5px 8px 8px 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    top: 18px;
    right: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background-color: rgb(69 84 97 / 67%);
    font-size: 2vh;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    z-index: 20;
    font-weight: 200 !important;
    text-decoration: none;
    border-radius: 8px;
}

.speed-container {
    width: 80%;
    height: 8px;
    border: 2px solid #000;
    border-radius: 8px;
    overflow: visible;
    position: absolute;
    top: 25%;
}

.speed-bar {
    border-radius: 8px;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #008000cf, #ffff00cf, #ff0000cf);
}

.speed-indicator {
    position: absolute;
    top: -15px;
    width: 40px;
    height: 40px;
    background: url(../images/good.png);
    background-size: cover;
    transition: left 0.2s ease;
}

.hard-mode-indicator {
    left: calc(70% + 20px);
    position: absolute;
    top: 0px;
    width: 2px;
    height: 10px;
    background-color: black;
}

.none {
    display: none !important;
}

.hidden {
    visibility: hidden !important;
}

#coin-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -100;
    display: none;
}
/*#coin-container2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    display: none;
}*/

.coin {
    opacity: 0.5;
    position: absolute;
    width: 32px;
    height: 32px;
    background: none;
    animation: fall linear;
    top: -5vh;
    z-index: -100;
    pointer-events: none;
    will-change: transform;
}

    .coin::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23ffd700' stroke='%23d4af37' stroke-width='8'/%3E%3Ctext x='50' y='65' font-size='40' font-family='Arial, sans-serif' text-anchor='middle' fill='%23fff'%3EM%3C/text%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }

/*    .coin::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2390d9ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='32' y1='4' x2='32' y2='60'/%3E%3Cline x1='4' y1='32' x2='60' y2='32'/%3E%3Cline x1='12' y1='12' x2='52' y2='52'/%3E%3Cline x1='52' y1='12' x2='12' y2='52'/%3E%3Cline x1='32' y1='18' x2='26' y2='12'/%3E%3Cline x1='32' y1='18' x2='38' y2='12'/%3E%3Cline x1='32' y1='46' x2='26' y2='52'/%3E%3Cline x1='32' y1='46' x2='38' y2='52'/%3E%3C/g%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }*/







@keyframes fall {
    0% {
        top: -5vh;
    }

    100% {
        top: 92vh; 
    }
}

#basket {
    display: none;
    position: absolute;
    bottom: 20vh;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(to bottom, #2e4557c7, #497a9cc7);
    border: 2px solid rgb(0, 0, 0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    z-index: 6;
    overflow: hidden;
}

.basket-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ffde7a, #ffc107);
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

#basket::after {
    content: attr(data-count);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 2;
}

.heart-float {
    position: fixed;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='%23f44336' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41 0.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: heartFloatUp 2s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes heartFloatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50vh);
    }
}



/*new 2.0*/


#gamesContainer {   
    margin-bottom: 18vh;   
}

.game-main {
    display: flex;
}

.game-item {
    user-select: none;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.game-avatar {
    user-select: none;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.game-info {
    flex: 1; /* чтобы текстовая часть занимала всё оставшееся пространство */
    color: black;
}

.game-name {
    user-select: none;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}



.game-rating {
    text-align: right;
    font-weight: bold;
    color: var(--action-color);
    font-size: 13px;
    min-width: 50px;
    margin-right: 8px;
}

.game-description {
    user-select: none;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 8px;
}
.game-players {
    user-select: none;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 8px;
}

.game-players span{
    font-weight: bold;
}

.game-points {
    user-select: none;
    display: inline;
    font-weight: bold;
    font-size: 14px;
    color: var(--link-color);
}

.game-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.game-button {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin-top: 5px;
    padding: 5px;
    flex: 1;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    text-shadow: 1px 1px 1px black;
}

    .game-button.open {
        background-color: var(--link-color);
    }

    .game-button.play {
        background-color: var(--action-color);
    }

    .game-button.results {
        background-color: var(--dark-accent);
    }

.pvp-create {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin-top: 5px;
    padding: 5px;
    flex: 1;
    border-radius: 5px;
    border: 2px solid rgb(62 113 157);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    text-shadow: 1px 1px 1px black;
    width: 100%;
    height: 40px;
    background-color: var(--link-color);
    margin-bottom: 10px;
}



.round-button.result-nav {
    visibility: hidden;
}
.round-button#prevButton {
    background: url(../images/left.png) no-repeat center;
    background-size: 25px;
    background-color: var(--back-color2);
}

.round-button#nextButton {
    background: url(../images/right.png) no-repeat center;
    background-size: 25px;
    background-color: var(--back-color2);
}


.left-menu {
    bottom: 10vh;
    left: 0;
    width: 25vw;
    height: 6vh;
    text-align: center;
    border-top-right-radius: 2vh;
    border-bottom-right-radius: 2vh;
    background-color: var(--back-color1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    font-size: 2vh;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    z-index: 20;
    font-weight: 200 !important;
}

.right-menu {
    bottom: 10vh;
    text-align: right;
    right: 0;
    width: 25vw;
    text-align: center;
    border-top-left-radius: 2vh;
    border-bottom-left-radius: 2vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-shadow: 2px 2px 2px black;
    height: 6vh;
    background-color: var(--back-color1);
    font-size: 2vh;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    z-index: 20;
    font-weight: 200 !important;
    border: none;
}


.game-result {
    font-size: 2vh;
    user-select: none;
    width: 90%;
    margin-top: 70px;
    background-color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex: 1;
    overflow-y: auto;
}

    .game-result table {
        width: 100%;
        border-collapse: collapse;
    }

    .game-result th, .game-result td {
        padding: 5px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-result th {
        background-color: #f2f2f2;
    }

    .game-result td:nth-child(2) {
        max-width: 150px;
    }


.task-item {
    user-select: none;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.task-avatar {
    user-select: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-right: 8px;
}

.task-description {
    user-select: none;
    flex-grow: 1;
    font-size: 14px;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.task-status, .pvp-status {
    user-select: none;
    padding-top: 2px;
    display: flex;
    justify-content: space-between;
}

.pvp-status{
    margin-left: 8px;
}

.task-timer {
    font-weight: bold;
    color: var(--action-color);
    font-size: 13px;
    margin-right: 2px;
}

.task-points {
    user-select: none;
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: var(--link-color);
}

.task-buttons {
    user-select: none;
    display: grid;
    gap: 10px;
}

    .task-buttons button {
        max-height: 35px;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        width: 86px;
        padding: 8px 10px;
        border: none;
        border-radius: 5px;
        background-color: rgb(131 167 153 / 50%);
        color: #fff;
        cursor: pointer;
        font-size: 13px;
        text-shadow: 1px 1px 1px black;
    }

        .task-buttons button:first-child {
            background-color: var(--link-color);
        }

        .task-buttons button:last-child {
            background-color: var(--action-color);
        }

button.claim-btn[disabled] {
    background-color: #aaa !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.rating-result {
    font-size: 2vh;
    user-select: none;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex: 1;
    overflow-y: auto;
    color: black;
}

.momo-rating-result {
    width: 90%;
}

    .rating-result table {
        width: 100%;
        border-collapse: collapse;
    }

    .rating-result th, .rating-result td {
        padding: 5px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rating-result th {
        background-color: #f2f2f2;
    }

    .rating-result td:nth-child(2) {
        max-width: 150px;
    }




.shop-container {
    user-select: none;
    flex: 1;
    overflow-y: auto;
    width: 90%;
    margin-bottom: 18vh;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.shop-item-main {
    display: flex;
}

.shop-item {
    user-select: none;
    background-color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    color: #000;
}

.shop-item-avatar {
    user-select: none;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.shop-item-name {
    user-select: none;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 8px;
}

.shop-item-description {
    user-select: none;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 8px;
}


.shop-item-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.shop-item-button {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin-top: 5px;
    padding: 5px;
    flex: 1;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    text-shadow: 1px 1px 1px black;
}

    .shop-item-button.info {
        background-color: var(--link-color);
    }

    .shop-item-button.pay {
        background-color: var(--action-color);
    }

.shop-item-timer {
    padding-top: 5px;
    font-weight: bold;
    color: var(--action-color);
    font-size: 12px;
    text-align: end;
}

.shop-empty{
    color: black;
    text-align: center;
}

.pvp-empty {
    color: white;
    text-align: center;
}


.pvp-create-container {
    user-select: none;
    flex: 1;
    overflow-y: auto;
    width: 90%;
    margin-bottom: 14vh;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--back-color2);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: white;
}

.pvp-create-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pvp-create-control {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.pvp-create-game-list, .pvp-create-bet-list {
    display: flex;
    gap: 12px;
    margin-left: 12px;
    margin-right: 12px;
}

.pvp-create-game-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    flex-shrink: 0;
    border: 2px solid #ccc;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.pvp-create-bet-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    flex-shrink: 0;
    border: 2px solid #ccc;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.pvp-create-bet-item {
    display: flex; /* центрирование */
    align-items: center; /* по вертикали */
    justify-content: center; /* по горизонтали */
    font-weight: 800; /* пожирнее */
    font-size: 18px; /* побольше цифра */
    line-height: 1; /* не тянем строку */
    color: #0b1b26; /* контраст на белом фоне */
}

    .pvp-create-game-item:hover, .pvp-create-bet-item:hover {
        transform: scale(1.1);
        border-color: #00bfff;
    }

    .pvp-create-game-item.selected, .pvp-create-bet-item.selected{
        border-color: #00bfff;
        box-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
        transform: scale(1.1);
    }

.pvp-info-text {
    font-size: 16px;
}

.winner {
    color: var(--action-color);
    font-size: 16px;
}


.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .countdown-overlay.hidden {
        display: none;
    }

.countdown-number {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.animate {
    animation: scaleUp 1s ease-in-out;
}

@keyframes scaleUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.holder-beacon {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 9999;
    right: 5px;
    bottom: 17.5vh;
    transform: translateX(-50%);
}

.holder-yes {
    background: #2ecc71;
}
.holder-no {
    background: #ff3b30;
}
.holder-unknown {
    background: #9aa0a6;
}


.momo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

    .momo-modal-overlay.hidden {
        display: none;
    }

.momo-modal {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.momo-modal-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.momo-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 10px 0;
    gap: 12px;
}

.momo-modal-label {
    opacity: 0.75;
    font-size: 13px;
}

.momo-modal-value {
    font-weight: 700;
    font-size: 14px;
}

.momo-modal-slider {
    width: 100%;
    margin: 8px 0 2px 0;
}

.momo-modal-hint {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.25;
}

.momo-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.momo-btn {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin-top: 5px;
    padding: 5px;
    flex: 1;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    text-shadow: 1px 1px 1px black;
}

    .momo-btn.primary {
        background-color: var(--link-color);
    }

    .momo-btn.secondary {
        background-color: var(--action-color);
    }

    .momo-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.momo-modal-hint.info {
    opacity: 0.85;
}

.momo-modal-hint.success {
    color: #2e7d32;
}

.momo-modal-hint.error {
    color: #c62828;
}
