@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}
* {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
html {
    height: 100%;;
}
body {
    color: #888596;
    font-size: 20px;
    background-color: #1a1a24;
    background: linear-gradient(30deg, #1a1a24 0%, #2d2a3b 100%);
    min-height: 100%;
    padding: 4px;
}
h1,h2,h3 {
    font-weight: 600;
}
em {
    font-style: italic;
}
label {
    display: block;
    margin-bottom: 4px;
}
input, select, textarea {
    outline: none !important;
    padding: 16px;
    font-size: 20px;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #fff2;
    background-color: transparent;
    color: #fff;
    transition: .2s;
}
input:focus, select:focus, textarea:focus,
input:active, select:active, textarea:active {
    border: 2px solid #fff;
}
::placeholder {
    color: #fff7;
}

.btn {
    cursor: pointer;
    padding: 20px 28px;
    border: none;
    background: linear-gradient(90deg, #e74f8c 0%, #fc9167 100%);
    display: inline-block;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    box-shadow:
                0 10px 30px rgba(16, 17, 12, 0.27),
                0 3px 10px rgba(16, 17, 12, 0.33);
    transition: .2s;
}
.btn-inblock {
    display: block;
    border-radius: 12px 12px 32px 32px;
    width: 100%;
}
.hidden {
    display: none !important;
}
.spaceunder {
    margin-bottom: 16px;
}
/* header */
.header {
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    height: 88px;
}
.header__logo {
    display: flex;
}
.header__logo img {
    width: auto;
    height: 64px;
}
/* Game */
.game {
    min-height: calc(100vh - 96px);
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 24px;
    border-radius: 24px;
    background-color: #191524;
    background: linear-gradient(20deg, #100f15 0%, #191524 100%);
}
.btn.btn-start {
    width: 120px;
    height: 120px;
    border-radius: 120px;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1em;
    padding: 8px;
}
.teams {
    display: flex;
    position: relative;
    gap: 4px;
}
.teams__team {
    color: #fff9;
    width: 50%;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    background: rgba(207, 206, 255, .05);
    box-shadow: inset 0 0 30px rgb(207 206 255 / 5%);
}
.teams__team:first-child {
    border-radius: 24px 0 0 8px;
    justify-content: flex-end;
}
.teams__team:last-child {
    border-radius: 0 24px 8px 0;
}
.teams__team-name {
    text-align: left;
}
.teams__team-score {
    max-width: 60px;
    font-size: 32px;
    padding: 0 8px;
    color: #fff;
}
.game__current-team {
    padding: 12px 8px;
}
.game__current-team-name {
    font-size: 32px;
    color: #fff;
}
.game__settings {
    max-width: 100%;
    width: 400px;
    margin: 0 auto;
}
.game__form-wrap {
    border-radius: 24px;
    background: linear-gradient(30deg, #1a1a24 0%, #2d2a3b 100%);
}
.game__form {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
}
.game__label {
}
.game__input {
}
.game__round {
    position: relative;
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    background: linear-gradient(30deg, #1a1a24 0%, #2d2a3b 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}
.game__round-number {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    border-radius: 24px 24px 12px 12px;
    background: linear-gradient(30deg, #282635 0%, #2d2a3b 100%);
    padding: 12px 24px;
    box-shadow: 0 0 10px #171421, 0 0 20px #171421;
}
.info {
    font-size: 16px;
    padding: 8px 8px 24px;
}
.game__minute {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.game__timer {
    font-size: 48px;
    font-weight: 600;
}
.game__card-wrap {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 380px;
}
.game__card {
    position: relative;
    left: 0;
    top: 0;
    opacity: 1;
    width: calc(100% - 80px);
    height: 180px;
    padding: 24px;
    background: linear-gradient(70deg, #704f5c 0%, #454154 40%, #454154 60%, #546466 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    transition: .15s;
    box-shadow: inset 0 2px 0 #fff2, 0 5px 20px #0004, 0 5px 40px #0006;
}
.game__arrow {
    border: none;
    background: transparent;
    width: 40px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.game__arrow-left {

 }
.game__arrow-left::before {
    content: '';
    display: block;
    border-right: 20px solid #e74f8c;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
}
.game__arrow-right {

}
.game__arrow-right::after {
    content: '';
    display: block;
    border-left: 20px solid #97ffb8;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
}
.game__card.slide-right {
    left: 200px;
    top: 0;
    opacity: 0;
}
.game__card.slide-left {
    left: -200px;
    top: 0;
    opacity: 0;
}
.game__card.slide-in {
    left: 0;
    top: -100px;
    opacity: 0;
}
/* turn results */
.game__turn-result {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 12px;
}
.game__table-result {
    padding:  0 12px;
}
.game__turn-result .word {
    position: relative;
    border-radius: 40px;
    margin-bottom: 4px;
    padding: 2px 34px 2px 12px;
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.game__turn-result .word-plus{
    color: #85d1ce;
    background-color: rgba(151, 255, 184, 0.15);
}
.game__turn-result .word-minus {
    color: #f5bdd7;
    background-color: rgba(255, 151, 182, 0.15);
}
.game__turn-result .set-minus, .game__turn-result .set-plus {
    position: absolute;
    right: 2px;
    top: 50%;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    font-size: 32px;
    overflow: hidden;
    border: 2px solid #fff;
}
.game__turn-result .set-minus {
    /*box-shadow: inset 0 0 8px #FF97B699;*/
}
.game__turn-result .set-plus {
    /*box-shadow: inset 0 0 8px #97FFB899;*/
}
.game__turn-result .set-minus::before,
.game__turn-result .set-plus::before,
.game__turn-result .set-minus::after,
.game__turn-result .set-plus::after{
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    position: absolute;
    top: 13px;
    left: 4px;
    background-color: #fff;
    border-radius: 2px;
}
.game__turn-result .set-minus::before {
    transform: rotate(45deg);
}
.game__turn-result .set-minus::after {
    transform: rotate(-45deg);
}
.game__turn-result .set-plus::before {
    width: 18px;
    left: 5px;
}
.game__turn-result .set-plus::after {
    width: 18px;
    left: 5px;
    transform: rotate(90deg);
}
/* ======== popup ======== */
.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: #100f15aa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.popup__content {
    width: 380px;
    max-width: 100%;
    border-radius: 24px;
    background: linear-gradient(30deg, #1a1a24 0%, #2d2a3b 100%);
    text-align: center;
    padding: 48px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ======== Last word ======== */
.lastword__content {
    gap: 12px;
}
.lastword__title {
    font-size: 20px;
}
.lastword__word {
    font-size: 40px;
    color: #fff;
    margin-bottom: 16px;
}
.lastword__teams {
    display: flex;
    gap: 2px;
    width: 100%;
}
.lastword__btn {
    padding: 20px 8px;
    border-radius: 0;
    flex-grow: 1;
    box-shadow: none;
}
.lastword__btn:first-child {
    border-radius: 8px 0 0 24px;
}
.lastword__btn:last-child {
    border-radius: 0 8px 24px 0;
}
.lastword__btn.lastword__btn-skip {
    background: #888596;
}

/* ======== winner ======== */
.winner__title {
    font-size: 28px;
    padding: 0 24px;
}
.winner__name {
    font-size: 36px;
    color: #fff;
    padding: 0 24px;
    margin-bottom: 28px;
}
.winner__score {
    font-size: 64px;
    font-weight: 600;
    color: #fff;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(207, 206, 255, .05);
    box-shadow: inset 0 0 30px rgb(207 206 255 / 5%);
}
