/* Основные стили и шрифты */
@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular.woff2') format('woff2'), url('Inter-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: inter;
    src: url('Inter-Regular.woff2') format('woff2'), url('Inter-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#ps_modal {
    z-index: 10000 !important; /* Увеличиваем приоритет */
}

/* Базовые стили для всех страниц */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', inter, Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.pt-site-header {
    width: 100%;
    box-sizing: border-box;
    padding: 22px 32px 0;
    position: relative;
    z-index: 20;
}

.pt-site-header__inner {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pt-site-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
}

.pt-site-header__brand img {
    width: 118px;
    height: auto;
    display: block;
}

.pt-site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pt-header-btn {
    height: 46px;
    min-width: 118px;
    max-width: 260px;
    padding: 0 20px;
    border: 1px solid #e8e5f8;
    border-radius: 999px;
    background: #ffffff;
    color: #1c032a;
    font: 600 15px/1 inter, Arial, sans-serif;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(255, 178, 46, 0.12);
}

.pt-header-btn--dark {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.pt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(18, 11, 36, 0.28);
    backdrop-filter: blur(10px);
}

.pt-modal.is-open {
    display: flex;
}

.pt-modal__box {
    width: min(420px, 94vw);
    max-height: min(760px, 92vh);
    overflow: auto;
    box-sizing: border-box;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(151, 114, 5, 0.22);
    padding: 24px;
    font-family: inter, Arial, sans-serif;
    color: #1c032a;
}

.pt-modal__box--wide {
    width: min(620px, 94vw);
}

.pt-modal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.pt-modal__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.pt-modal__subtitle {
    margin-top: 6px;
    color: #6c6478;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pt-modal__close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: #FFE7BA;
    color: #1c032a;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.pt-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #3c3151;
    font-size: 14px;
}

.pt-field input,
.pt-email-suggestion input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #ddd8f5;
    border-radius: 16px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
    color: #1c032a;
    font: 15px/1 inter, Arial, sans-serif;
}

.pt-field input:focus,
.pt-email-suggestion input:focus {
    border-color: #FFBC0B;
    box-shadow: 0 0 0 3px rgba(255, 188, 11, 0.16);
}

.pt-modal__error,
.pt-email-suggestion__error {
    min-height: 18px;
    margin-top: 8px;
    color: #dd5454;
    font-size: 13px;
    line-height: 1.35;
}

.pt-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.pt-action-btn,
.pt-email-suggestion__button {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    background: #FFE7BA;
    color: #1c032a;
    font: 600 14px/1 inter, Arial, sans-serif;
    cursor: pointer;
}

.pt-action-btn--primary,
.pt-email-suggestion__button {
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: #ffffff;
}

.pt-email-suggestion {
    width: min(300px, 90%);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    text-align: center;
    font-family: inter, Arial, sans-serif;
}

.pt-email-suggestion label,
.pt-email-suggestion--compact {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.35;
}

.pt-email-suggestion.is-active label {
    font-weight: 700;
}

.pt-email-suggestion__button {
    width: 100%;
    box-shadow: 0 8px 18px rgba(151, 114, 5, 0.18);
}

.pt-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-orders-empty {
    border-radius: 18px;
    background: #f4f1ff;
    color: #4c4264;
    padding: 18px;
    font-size: 14px;
    line-height: 1.45;
}

.pt-order-card {
    border-radius: 20px;
    background: #f8f6ff;
    border: 1px solid #e8e2ff;
    padding: 16px;
}

.pt-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pt-order-card__code {
    color: #FFB144;
    font-weight: 700;
    letter-spacing: 0;
}

.pt-order-card__status {
    border-radius: 999px;
    background: #ffffff;
    color: #FFB144;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pt-order-card__title {
    color: #1c032a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.pt-order-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pt-order-card__details span {
    border-radius: 999px;
    background: #ffffff;
    color: #4c4264;
    padding: 6px 9px;
    font-size: 12px;
}

.pt-order-card__date {
    color: #7b728e;
    font-size: 12px;
}

.main {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.cyndyk {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Контейнер - общие стили */
.container {
    width: 90vw;
    max-width: 420px;
    height: auto;
    min-height: 250px;
    background: #FFBC0B;
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgba(255, 177, 68, 1) 92%);
    background-size: contain, auto;
    border-radius: 37.5px;
    box-shadow: 0 10px 20px #FFBC0Bab;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.container.error-mode {
    width: 550px;
    height: 130px;
}

.txt-center {
    text-align: center !important;
}


/* Текст */
.text {
    font-size: 18px;
    font-family: inter;
    color: #fff;
    text-align: left;
    padding: 0 20px;
    z-index: 1;
    line-height: 1.4;
    width: 100%;
}

.not-black {
    color: #1C032A;
}

.black {
    color: black !important;
}

.fs-16 {
    font-size: 16px !important;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-15 {
    margin-bottom: 15px;
}

.txt-center {
    text-align: center;
}

.txt-al-left {
    text-align: left !important;
}

.bld {
    font-weight: bolder;
}

.bgr {
    font-size: 40px;
    margin-top: -20px;
    font-weight: bolder;
    text-align: center;
}

/* Поля ввода */
.input-field {
    width: 90vw;
    max-width: 300px;
    font-family: inter !important;
    height: 60px;
    border-radius: 21px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    z-index: 2;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

.input-field::placeholder {
    color: #CDCDCD;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Кнопки */
.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    width: 100%;
    max-width: 390px;
    position: relative;
}

.btn {
    width: 90vw;
    max-width: 390px;
    height: 50px;
    border-radius: 37.5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    font-family: inter;
}

.btn-get-code {
    background: #FFBC0B;
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: white;
}

.btn-support {
    background-color: #DD5454 !important;
    color: #ffffff !important;
}

.btn-continue {
    background-color: #FFBC0B;
    color: #fff;
}

.btn-expanded {
    height: auto !important;
    min-height: 50px;
    padding: 15px;
}

.btn-please-review {
    background-color: #BDBAFF;
    height: auto;
    min-height: 80px;
    position: relative;
    cursor: pointer;
    color: black;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    text-decoration: none;
}

.btn-please-review:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.btn-please-review .text {
    line-height: 1.3;
    width: 100%;
}

.btn.btn-please-review:link,
.btn.btn-please-review:visited {
    color: rgb(0, 0, 0) !important;
}

.expanded-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question {
    font-weight: bold;
    margin-bottom: 8px;
}

.answer {
    font-size: 14px !important;
    font-weight: normal;
}

/* Ошибки */
.error-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    height: 250px;
    pointer-events: none;
    z-index: 2;
}

.desktop-error {
    position: absolute;
    top: 130px;
    left: 380px;
    width: 300px;
    height: 60px;
    background: url('warning.png') no-repeat left center;
    background-size: contain;
    color: white;
    font-size: 14px;
    padding-left: 40px;
    display: none;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mobile-error-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(90vw - 40px);
    max-width: 320px;
    height: auto;
    max-height: 100px;
    min-height: 20px;
    background-color: #e24a43;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(226, 74, 67, 0.4);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 200;
    animation: slideDown 0.3s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mobile-error-popup:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e24a43;
}

.desktop-error.active,
.mobile-error-popup.active {
    opacity: 1;
}

.fade-out {
    opacity: 0 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Рейтинг и модальное окно (приоритет из game_code.html) */
.rating-box {
    max-width: 420px;
    margin: 30px auto 0;
    background: #FFE7BA;
    border-radius: 35px;
    padding: 25px 25px 20px !important;
    text-align: center !important;
    min-width: 380px;
    min-height: 70px;
    position: fixed;
    bottom: 20px;
    z-index: 0 !important;
}

/* Переключатель языка (внизу по центру, как на cyndyk) */
.language-switcher {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1100;
}

.language-switcher a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.language-active { color: #000; }
.language-inactive { color: #CDCDCD; }

.rating-box p {
    margin: 0 0 16px;
    font-size: 14px !important;
    font-weight: 600;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star {
    width: 22px;
    height: 22px;
    background-image: url('star.svg');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: filter 0.2s ease;
    display: block;
    margin-right: 8px;
}

.star-wrapper {
    position: relative;
    padding: 5px;
    margin: -5px;
    cursor: pointer;
}

.star.active {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.star.hovered {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.btn-continue {
    background: #FFBC0B;
    background: linear-gradient(149deg,rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: white;
}

.modal-box {
    width: 530px !important;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 40px;
    padding: 18px 50px 35px 50px !important;
    text-align: center !important;
    box-shadow: 0 0 50px rgba(151, 114, 5, 0.3);
    animation: modalAppear 0.3s ease-out;
    backdrop-filter: blur(20px) saturate(60%);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(28, 3, 42, 0.35);
    font-size: 26px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    color: rgba(28, 3, 42, 0.7);
    background: rgba(28, 3, 42, 0.06);
}

#ps_modal .ps-console-modal-box {
    width: min(520px, calc(100vw - 32px)) !important;
    box-sizing: border-box;
    padding: 34px 42px 38px !important;
}

#ps_modal .ps-console-actions {
    width: min(430px, 100%);
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

#ps_modal .ps-console-button {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    flex: 1 1 0;
}

.console-change-link {
    margin-left: 10px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.chat-btn {
    width: 70%;
    height: 48px;
    background: #FFB144;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: 15px !important;
    cursor: pointer;
    text-align: center !important;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalDisappear {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}



@keyframes mulShdSpin {
    0%,
    100% {
        box-shadow: 0 -1.2em 0 0.08em #fff,
                    0.8em -0.8em 0 0em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0 0 -0.4em #fff,
                    -0.8em -0.8em 0 0 #fff;
    }
    12.5% {
        box-shadow: 0 -1.2em 0 0 #fff,
                    0.8em -0.8em 0 0.08em #fff,
                    1.2em 0 0 0 #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    25% {
        box-shadow: 0 -1.2em 0 -0.2em #fff,
                    0.8em -0.8em 0 0 #fff,
                    1.2em 0 0 0.08em #fff,
                    0.8em 0.8em 0 0 #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    37.5% {
        box-shadow: 0 -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0em 0 0 #fff,
                    0.8em 0.8em 0 0.08em #fff,
                    0 1.2em 0 0em #fff,
                    -0.8em 0.8em 0 -0.4em #fff,
                    -1.2em 0em 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    50% {
        box-shadow: 0 -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 0em #fff,
                    0 1.2em 0 0.08em #fff,
                    -0.8em 0.8em 0 0 #fff,
                    -1.2em 0em 0 -0.4em #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    62.5% {
        box-shadow: 0 -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 0 #fff,
                    -0.8em 0.8em 0 0.08em #fff,
                    -1.2em 0 0 0 #fff,
                    -0.8em -0.8em 0 -0.4em #fff;
    }
    75% {
        box-shadow: 0em -1.2em 0 -0.4em #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0em 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 0 #fff,
                    -1.2em 0em 0 0.08em #fff,
                    -0.8em -0.8em 0 0 #fff;
    }
    87.5% {
        box-shadow: 0em -1.2em 0 0 #fff,
                    0.8em -0.8em 0 -0.4em #fff,
                    1.2em 0 0 -0.4em #fff,
                    0.8em 0.8em 0 -0.4em #fff,
                    0 1.2em 0 -0.4em #fff,
                    -0.8em 0.8em 0 0 #fff,
                    -1.2em 0em 0 0 #fff,
                    -0.8em -0.8em 0 0.08em #fff;
    }
}

/* Также нужно адаптировать другие элементы для мобильных */
@media (max-width: 768px) {
    .pt-site-header {
        padding: 16px 14px 0;
    }

    .pt-site-header__inner {
        align-items: flex-start;
    }

    .pt-site-header__brand {
        min-width: 0;
    }

    .pt-site-header__brand img {
        width: 96px;
    }

    .pt-site-header__actions {
        gap: 8px;
        max-width: calc(100vw - 128px);
    }

    .pt-header-btn {
        min-width: 0;
        max-width: 138px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .pt-modal {
        padding: 14px;
    }

    .pt-modal__box {
        border-radius: 22px;
        padding: 20px;
    }

    .pt-modal__title {
        font-size: 20px;
    }

    .input-field {
        width: 85vw; /* Адаптивная ширина поля ввода */
        max-width: 300px;
        height: 55px;
        font-size: 15px;
    }
    
    .text {
        font-size: 16px;
        padding: 0 15px;
    }
    
}

@media (max-width: 480px) {
    .pt-site-header__inner {
        flex-direction: column;
        align-items: center;
    }

    .pt-site-header__actions {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    .pt-header-btn {
        flex: 1 1 0;
        max-width: none;
    }

    .pt-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-action-btn {
        width: 100%;
    }

    .pt-order-card__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .pt-order-card__status {
        white-space: normal;
    }

    .input-field {
        width: 90vw;
        height: 50px;
        font-size: 14px;
    }
    
    .text {
        font-size: 15px;
        padding: 0 10px;
    }
    
    
    .mb-30 {
        margin-bottom: 20px;
    }
}

        
        .cross-icon {
            width: 50px;
            height: 50px;
            position: relative;
            margin-bottom: 20px;
        }
        
        .cross-icon::before,
        .cross-icon::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 4px;
            background-color: #fff;
            top: 50%;
            left: 0;
            border-radius: 2px;
        }
        
        .cross-icon::before {
            transform: translateY(-50%) rotate(45deg);
        }
        
        .cross-icon::after {
            transform: translateY(-50%) rotate(-45deg);
        }
        

        
        .loader {
          width: 0.4em; 
          height: 0.4em;
          border-radius: 50%;
          position: relative;
          text-indent: -9999em;
          animation: mulShdSpin 1.3s infinite linear;
          transform: translateZ(0);
          margin: 30px auto;
          color: white;
        }
        
        .loading-text {
            font-size: 16px;
            text-align: center;
            font-family: inter !important;
            font-weight: bold;
            margin: 15px 0;
        }
        
        .loading-container {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 0;
            color:white;
        }

@media (max-width: 320px) {
    .input-field {
        width: 95vw;
        height: 45px;
        font-size: 13px;
    }
    
    .text {
        font-size: 14px;
    }
    
}

.desktop-error, .mobile-error-popup {
    display: none; 
}

@media (max-width: 1024px) {
    .mobile-error-popup.active {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .desktop-error.active {
        display: flex;
    }
}
@media (max-width: 768px) {
    .container {
        width: 95vw;
        max-width: none;
        border-radius: 25px;
        min-height: 200px;
    }
    
    .rating-box {
        position: relative;
        min-width: unset;
        width: 90vw;
        max-width: 400px;
        margin: 30px auto;
        bottom: unset;
    }
    
    .buttons {
        width: 95vw;
        max-width: none;
    }
    
    .btn {
        width: 95vw;
        max-width: none;
        font-size: 15px;
        height: 45px;
    }
    
    .btn-expanded {
        min-height: 45px;
        padding: 12px;
    }
    
    .btn-please-review {
        min-height: 70px;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .modal-box {
        width: 90vw;
        max-width: 400px;
        margin: 0 20px;
        box-shadow: 0 0 30px rgba(151, 114, 5, 0.3);
    }
    
    .input-field {
        width: 85vw;
        height: 55px;
        font-size: 15px;
    }
    
    .text {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .chat-btn {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98vw;
        border-radius: 20px;
        min-height: 180px;
        margin: 10px auto;
        padding: 15px;
    }
    
    .buttons {
        width: 98vw;
        gap: 12px;
        margin-top: 20px;
    }
    
    .btn {
        width: 98vw;
        font-size: 14px;
        height: 42px;
        border-radius: 25px;
        padding: 0 12px;
    }
    
    .btn-expanded {
        min-height: 42px;
        padding: 10px;
    }
    
    .answer {
        font-size: 13px !important;
    }
    
    .btn-please-review {
        min-height: 60px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .modal-box {
        width: 95vw;
        max-width: 350px;
        padding: 20px;
        box-shadow: 0 0 20px rgba(151, 114, 5, 0.3);
    }
    
    .mobile-error-popup {
        font-size: 13px;
        padding: 1px 8px;
        max-height: 35px;
        min-height: 35px;
        border-radius: 10px;
        top: calc(100% + 8px);
    }
    
    .input-field {
        width: 90vw;
        height: 50px;
        font-size: 14px;
    }
    
    .text {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .mb-30 {
        margin-bottom: 20px;
    }
    
    .rating-box {
        padding: 12px 16px;
        border-radius: 15px;
    }
}

@media (max-width: 320px) {
    .container {
        min-height: 150px;
        border-radius: 15px;
        padding: 10px;
    }
    
    .buttons {
        width: 100vw;
        gap: 10px;
    }
    
    .btn {
        width: 95vw;
        font-size: 13px;
        height: 40px;
        border-radius: 20px;
    }
    
    .btn-expanded {
        min-height: 40px;
        padding: 8px;
    }
    
    .answer {
        font-size: 12px !important;
    }
    
    .btn-please-review {
        min-height: 55px;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .mobile-error-popup {
        font-size: 12px;
        padding: 8px 12px;
        min-height: 40px;
        border-radius: 8px;
        max-width: 260px;
    }
    
    .input-field {
        width: 95vw;
        height: 45px;
        font-size: 13px;
    }
    
    .text {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    #ps_modal .ps-console-modal-box {
        width: min(330px, calc(100vw - 32px)) !important;
        padding: 26px 24px 30px !important;
        border-radius: 28px;
    }

    #ps_modal .ps-console-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    #ps_modal .ps-console-button {
        height: 44px !important;
        flex: 0 0 44px;
    }
}

/* Фикс для Opera GX */
@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
    _:-webkit-full-screen, .text {
        line-height: 1.2 !important;
    }
}

/* Figma-like account/order layout */
.pt-site-header {
    width: 100%;
    padding: 42px 16px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 30;
}

.pt-account-bar {
    min-height: 42px;
    width: auto;
    max-width: calc(100vw - 32px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #111111;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.16);
    font-family: inter, Arial, sans-serif;
}

.pt-account-bar__orders,
.pt-account-bar__logout,
.pt-account-bar__submit {
    border: 0;
    cursor: pointer;
    font-family: inter, Arial, sans-serif;
}

.pt-account-bar__orders {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pt-lock-icon {
    width: 21px;
    height: 23px;
    display: block;
    fill: #ffffff;
    flex: 0 0 auto;
}

.pt-account-bar__fields {
    display: none;
    align-items: center;
    gap: 6px;
}

.pt-account-bar.is-expanded .pt-account-bar__fields {
    display: flex;
}

.pt-account-bar.is-expanded {
    width: min(560px, calc(100vw - 32px));
}

.pt-account-bar.is-expanded .pt-account-bar__orders {
    padding-right: 6px;
}

.pt-account-bar.is-logged-in .pt-account-bar__fields {
    display: none;
}

.pt-account-bar.is-logged-in .pt-account-bar__logout {
    display: inline-flex;
}

.pt-account-bar__fields input {
    height: 32px;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #1c032a;
    padding: 0 14px;
    outline: none;
    font: 12px/1 inter, Arial, sans-serif;
}

#siteLoginEmail {
    width: 170px;
}

#siteOrderCodeInput {
    width: 135px;
}

.pt-account-bar__submit {
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #303030;
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
}

.pt-account-bar__submit:disabled {
    cursor: default;
    pointer-events: none;
}

.pt-account-bar__logout {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0 3px;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: #d8d8d8;
    line-height: 1;
}

.pt-account-bar__logout:hover {
    color: #ffffff;
}

.pt-logout-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.pt-account-bar__error {
    width: min(520px, calc(100vw - 32px));
    min-height: 18px;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    color: #dd5454;
    text-align: center;
    font: 12px/1.3 inter, Arial, sans-serif;
}

body:not(.pt-orders-mode) .main {
    margin-top: 42px;
}

body.pt-order-memo-mode .main {
    margin-top: 34px;
}

.main > .cyndyk {
    width: 150px;
    margin-bottom: 20px;
}

body.pt-order-memo-mode .main > .cyndyk {
    margin-bottom: 14px;
}

.pt-home-view {
    --pt-card-control-font-size: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-home-view[hidden] {
    display: none;
}

.pt-home-view .container {
    --pt-card-vertical-gap: 22px;
    width: min(420px, 92vw);
    max-width: 420px;
    min-height: 355px;
    padding: var(--pt-card-vertical-gap) 42px;
    justify-content: flex-start;
    gap: var(--pt-card-vertical-gap);
    border-radius: 30px;
    overflow: hidden;
}

.pt-home-view .pt-code-card--guest {
    min-height: 0;
    padding-top: var(--pt-card-vertical-gap);
    padding-bottom: var(--pt-card-vertical-gap);
}

.pt-home-view .pt-code-card-title {
    max-width: 340px;
    margin: 0 auto;
    padding: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.pt-home-view .input-wrapper {
    width: 100%;
    margin: 0;
}

.pt-home-view .input-field {
    width: 100%;
    max-width: none;
    height: 56px;
    border-radius: 18px;
    font-size: 18px;
    color: #1c032a;
}

.pt-home-view .input-field::placeholder {
    color: #c7c4cd;
}

.pt-email-suggestion {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--pt-card-vertical-gap);
    align-items: center;
    position: relative;
}

.pt-email-suggestion label,
.pt-email-suggestion--compact {
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pt-email-suggestion input {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 16px;
    color: #1c032a;
}

.pt-email-suggestion input::placeholder {
    color: #8c8799;
}

.pt-email-suggestion__error {
    width: 100%;
    margin: 0;
    color: #ffe1e1;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}

.pt-email-suggestion__error:empty {
    display: none;
}

.pt-activate-btn {
    width: 100%;
    max-width: none;
    height: 46px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: linear-gradient(149deg, rgba(255, 188, 11, 1) 0%, rgb(255, 178, 46) 99%);
    color: #ffffff;
    cursor: pointer;
    font-size: var(--pt-card-control-font-size);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.pt-activate-btn:disabled {
    cursor: default;
    opacity: 0.65;
}

.pt-home-view .buttons {
    margin-top: 16px;
    gap: 12px;
    max-width: 390px;
}

.pt-home-view .btn {
    width: min(390px, 92vw);
    max-width: 390px;
    height: 46px;
    border-radius: 999px;
    font-size: var(--pt-card-control-font-size);
    font-weight: 500;
}

.pt-home-view .btn-get-code {
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pt-home-view .btn.btn-expanded {
    border-radius: 24px;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pt-home-view .rating-box {
    display: none;
    position: static;
    transform: none;
    width: min(390px, calc(100vw - 32px));
    max-width: 390px;
    min-width: 0;
    min-height: 0;
    margin: 14px auto 0;
    padding: 16px 22px 14px !important;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(255, 178, 46, 0.12);
    z-index: auto !important;
}

.pt-home-view .rating-box p {
    margin-bottom: 10px;
    font-size: 13px !important;
}

.pt-home-view .rating-box .stars {
    gap: 4px;
}

.pt-home-view .rating-box .star {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

.pt-orders-page {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pt-orders-page[hidden] {
    display: none;
}

.pt-orders-page-card {
    width: min(390px, 90vw);
    max-width: 390px;
    min-height: 420px;
    padding: 42px 42px 32px;
    justify-content: flex-start;
    border-radius: 31px;
}

.pt-orders-page-title {
    width: 100%;
    padding: 0;
    margin: 0 auto 24px;
    font-size: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    font-family: inter, Arial, sans-serif;
    font-weight: 500;
}

.pt-orders-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pt-orders-empty,
.pt-order-row {
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    color: #1c032a;
    font-family: inter, Arial, sans-serif;
}

.pt-orders-empty {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

.pt-order-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pt-order-row--clickable {
    cursor: pointer;
}

.pt-order-row--clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(151, 114, 5, 0.14);
}

.pt-order-row--loading {
    opacity: 0.72;
    pointer-events: none;
}

.pt-order-row--clickable:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.pt-order-row__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c274c;
}

.pt-order-row__icon svg {
    width: 16px;
    height: 16px;
    display: block;
    overflow: visible;
}

.pt-order-row__icon--hand {
    width: 18px;
    height: 22px;
    color: #2f3a5c;
}

.pt-order-row__icon--hand svg {
    width: 18px;
    height: 22px;
}

.pt-order-row__icon--check {
    width: 20px;
    height: 20px;
}

.pt-order-row__icon--check svg {
    width: 20px;
    height: 20px;
}

.pt-order-row__icon--chat {
    width: 18px;
    height: 18px;
    color: #1c274c;
}

.pt-order-row__icon--chat svg {
    width: 18px;
    height: 18px;
}

.pt-order-row__icon--failed {
    width: 20px;
    height: 20px;
    color: #4d1819;
}

.pt-order-row__icon--failed svg {
    width: 20px;
    height: 20px;
}

.pt-order-row__icon--activated,
.pt-order-row__icon--check {
    color: #234d19;
}

.pt-order-row__icon--chat {
    color: #1c274c;
}

.pt-order-row__icon--activation_error,
.pt-order-row__icon--wrong_platform,
.pt-order-row__icon--account_error,
.pt-order-row__icon--error,
.pt-order-row__icon--failed {
    color: #8b2424;
}

.pt-order-row__icon--failed {
    color: #4d1819;
}

.pt-order-row__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #163865;
    font-size: 14px;
}

.pt-order-row--activated .pt-order-row__name,
.pt-order-row--success .pt-order-row__name,
.pt-order-row--completed .pt-order-row__name {
    color: #315d33;
}

.pt-order-row--activation_error .pt-order-row__name,
.pt-order-row--wrong_platform .pt-order-row__name,
.pt-order-row--account_error .pt-order-row__name,
.pt-order-row--error .pt-order-row__name,
.pt-order-row--failed .pt-order-row__name {
    color: #4d1819;
}

.pt-order-row__date {
    color: #b3b0b8;
    font-size: 13px;
    white-space: nowrap;
}

.pt-orders-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 30px;
}

.pt-orders-dots[hidden] {
    display: none;
}

.pt-orders-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.pt-orders-dot:disabled {
    cursor: default;
}

.pt-orders-dot.is-active {
    background: #ffffff;
}

.pt-orders-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.pt-order-memo-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-order-memo-page[hidden] {
    display: none;
}

.pt-order-memo-card {
    width: min(560px, 90vw);
    max-width: 560px;
    min-height: 0;
    padding: 28px 42px 30px;
    justify-content: flex-start;
    border-radius: 31px;
}

.pt-order-memo-title {
    width: 100%;
    padding: 0;
    margin: 0 auto 16px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
}

.pt-order-memo-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff;
    font-family: inter, Arial, sans-serif;
}

.pt-order-memo-name {
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.pt-order-memo-code {
    margin: -4px 0 4px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pt-order-memo-lead {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.pt-order-memo-text {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    text-align: left;
}

.pt-order-memo-actions {
    margin-top: 18px;
    gap: 12px;
    max-width: 390px;
}

.pt-order-memo-page .btn {
    width: min(390px, 92vw);
    max-width: 390px;
    height: 46px;
    border-radius: 999px;
    font-size: var(--pt-card-control-font-size);
    font-weight: 500;
}

.pt-order-memo-page .rating-box {
    display: block;
    position: static;
    transform: none;
    width: min(390px, calc(100vw - 32px));
    max-width: 390px;
    min-width: 0;
    min-height: 0;
    margin: 12px auto 0;
    padding: 16px 22px 14px !important;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(255, 178, 46, 0.12);
    z-index: auto !important;
}

.pt-order-memo-page .rating-box p {
    margin-bottom: 10px;
    font-size: 13px !important;
}

.pt-order-memo-page .rating-box .stars {
    gap: 4px;
}

.pt-order-memo-page .rating-box .star {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

@media (max-width: 768px) {
    .pt-site-header {
        padding-top: 34px;
    }

    .pt-account-bar.is-expanded {
        width: min(520px, calc(100vw - 24px));
    }

    .main > .cyndyk {
        width: 150px;
        margin-bottom: 18px;
    }

    body:not(.pt-orders-mode) .main {
        margin-top: 38px;
    }

    body.pt-order-memo-mode .main {
        margin-top: 30px;
    }

    body.pt-order-memo-mode .main > .cyndyk {
        margin-bottom: 12px;
    }

    .pt-home-view .container {
        --pt-card-vertical-gap: 22px;
        width: min(390px, 94vw);
        min-height: 340px;
        padding: var(--pt-card-vertical-gap) 34px;
        border-radius: 28px;
    }

    .pt-home-view .pt-code-card--guest {
        min-height: 0;
        padding-top: var(--pt-card-vertical-gap);
        padding-bottom: var(--pt-card-vertical-gap);
    }

    .pt-home-view .pt-code-card-title {
        font-size: 18px;
    }

    .pt-home-view .input-field {
        height: 54px;
        font-size: 17px;
    }

    .pt-email-suggestion label,
    .pt-email-suggestion--compact {
        font-size: 15px;
    }

    .pt-email-suggestion input {
        height: 46px;
        font-size: 15px;
    }

    .pt-activate-btn {
        height: 44px;
    }

    .pt-order-memo-card {
        width: min(390px, 94vw);
        padding: 24px 28px 28px;
        border-radius: 28px;
    }

    .pt-order-memo-title {
        font-size: 18px;
    }

    .pt-order-memo-lead {
        font-size: 16px;
    }

    .pt-order-memo-text {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .pt-account-bar {
        max-width: calc(100vw - 24px);
    }

    .pt-account-bar.is-expanded {
        height: auto;
        min-height: 42px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 24px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__orders {
        width: 100%;
    }

    .pt-account-bar__fields {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) 32px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields {
        display: grid;
    }

    #siteLoginEmail,
    #siteOrderCodeInput {
        width: 100%;
    }

    .pt-account-bar.is-logged-in {
        flex-wrap: nowrap;
        border-radius: 999px;
    }

    .pt-account-bar.is-logged-in .pt-account-bar__orders {
        width: auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pt-account-bar.is-logged-in #siteOrdersLabel {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .pt-site-header {
        padding-top: 20px;
    }

    body:not(.pt-orders-mode) .main {
        margin-top: 34px;
    }

    .pt-home-view {
        --pt-card-control-font-size: 15px;
    }

    .main > .cyndyk {
        width: 136px;
        margin-bottom: 18px;
    }

    .pt-home-view .container {
        --pt-card-vertical-gap: 18px;
        width: calc(100vw - 48px);
        min-height: 300px;
        padding: var(--pt-card-vertical-gap) 28px;
        border-radius: 20px;
    }

    .pt-home-view .pt-code-card--guest {
        min-height: 0;
        padding-top: var(--pt-card-vertical-gap);
        padding-bottom: var(--pt-card-vertical-gap);
    }

    .pt-home-view .pt-code-card-title {
        max-width: 320px;
        font-size: 15px;
        line-height: 1.22;
    }

    .pt-home-view .input-field {
        height: 48px;
        border-radius: 16px;
        font-size: 15px;
    }

    .pt-email-suggestion {
        gap: var(--pt-card-vertical-gap);
    }

    .pt-email-suggestion label,
    .pt-email-suggestion--compact {
        font-size: 14px;
    }

    .pt-email-suggestion input {
        height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .pt-activate-btn {
        height: 38px;
    }

    .pt-home-view .buttons {
        width: calc(100vw - 48px);
        gap: 10px;
        margin-top: 14px;
    }

    .pt-home-view .btn {
        width: calc(100vw - 48px);
        height: 38px;
    }

    .pt-home-view .rating-box {
        width: calc(100vw - 48px);
        padding: 13px 16px 11px !important;
        border-radius: 20px;
    }

    .pt-home-view .rating-box p {
        margin-bottom: 8px;
        font-size: 12px !important;
    }

    .pt-home-view .rating-box .star {
        width: 18px;
        height: 18px;
    }

    .pt-orders-page-card {
        width: min(330px, 88vw);
        min-height: 420px;
        padding: 34px 26px 28px;
        border-radius: 24px;
    }

    .pt-orders-page-title {
        max-width: 320px;
        font-size: 15px;
        line-height: 1.22;
    }
}

/* PlayTown unified frontend fixes */
.pt-home-view .input-field,
.pt-home-view #customerEmailField {
    height: 56px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: #1c032a;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 18px;
    line-height: normal;
}

.pt-home-view .input-field::placeholder,
.pt-home-view #customerEmailField::placeholder {
    color: #c7c4cd;
}

.pt-home-view .input-field:focus,
.pt-home-view #customerEmailField:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.pt-home-view .pt-activate-btn,
.pt-home-view .buttons .btn {
    min-height: 50px;
    height: 50px;
    border-radius: 37.5px;
    font-size: 16px;
    line-height: 1;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pt-home-view .pt-activate-btn:focus,
.pt-home-view .buttons .btn:focus {
    outline: none;
}

.pt-home-view .pt-activate-btn:focus-visible,
.pt-home-view .buttons .btn:focus-visible {
    outline: 2px solid rgba(28, 3, 42, 0.65);
    outline-offset: 2px;
}

.pt-home-view #getCodeBtn.btn-get-code {
    width: 90vw;
    max-width: 390px;
    height: 50px;
    border-radius: 37.5px;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
    height: auto !important;
    min-height: 50px;
    padding: 15px;
    border-radius: 37.5px;
    transition: all 0.3s ease;
}

.pt-home-view #getCodeBtn .expanded-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pt-home-view #getCodeBtn .question {
    font-weight: bold;
    margin-bottom: 8px;
}

.pt-home-view #getCodeBtn .answer {
    font-size: 14px !important;
    font-weight: normal;
}

.desktop-error {
    top: 0;
}

.desktop-error.active {
    display: flex;
}

.mobile-error-popup.active {
    display: flex;
}

.rating-box,
.pt-order-memo-page .rating-box {
    width: 90vw;
    max-width: 420px;
    min-width: 380px;
    min-height: 70px;
    margin: 0;
    padding: 25px 25px 20px !important;
    border-radius: 35px;
    background: #FFE7BA;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    text-align: center !important;
    z-index: 1 !important;
}

/* Рейтинг-бокс как «липкий футер» (десктоп): когда контента мало — прижат к
   низу экрана; когда много — идёт сразу под кнопками. Так он всегда «внизу
   страницы» и при этом никогда не перекрывает кнопку поддержки. На мобиле
   рейтинг уже идёт в потоке (см. медиа max-width:768px). Покрывает
   enter_code/result_code/done (body.pt-has-fixed-rating) и memo-страницу
   заказа (body.pt-order-memo-mode — класс ставится из main.js). */
@media (min-width: 769px) {
    body.pt-has-fixed-rating .main,
    body.pt-order-memo-mode .main {
        flex: 1 0 auto;
    }

    body.pt-order-memo-mode .pt-order-memo-page {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    body.pt-has-fixed-rating .rating-box,
    body.pt-order-memo-mode .pt-order-memo-page .rating-box {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin: auto auto 56px;
        z-index: auto;
    }

    /* Зазор между кнопками и рейтинг-боксом — такой же, как между кнопками (15px).
       margin-top: auto у рейтинга схлопывается в 0 при длинном контенте, поэтому
       минимальный отступ задаём снизу у контейнера кнопок. */
    body.pt-has-fixed-rating .buttons,
    body.pt-order-memo-mode .pt-order-memo-actions {
        margin-bottom: 15px;
    }
}

.rating-box p,
.pt-order-memo-page .rating-box p {
    margin: 0 0 16px;
    font-size: 14px !important;
    font-weight: 600;
}

.rating-box .stars,
.pt-order-memo-page .rating-box .stars {
    gap: 8px;
}

.rating-box .star,
.pt-order-memo-page .rating-box .star {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 54px;
        border-radius: 18px;
        font-size: 17px;
        padding: 0 20px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn {
        min-height: 45px;
        height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
        padding: 0 15px;
    }

    .pt-home-view .buttons {
        width: 95vw;
        max-width: none;
    }

    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        max-width: none;
        height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
        padding: 0 15px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 45px;
        padding: 0 15px;
        border-radius: 37.5px;
    }

    .rating-box,
    .pt-order-memo-page .rating-box {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 90vw;
        max-width: 400px;
        min-width: 0;
        min-height: 70px;
        margin: 30px auto;
        padding: 25px 25px 20px !important;
        border-radius: 35px;
        z-index: auto !important;
    }
}

@media (max-width: 480px) {
    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 48px;
        border-radius: 16px;
        font-size: 15px;
        padding: 0 20px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn {
        min-height: 42px;
        height: 42px;
        border-radius: 25px;
        font-size: 15px;
        padding: 0 10px;
    }

    .pt-home-view .buttons {
        width: 98vw;
    }

    .pt-home-view #getCodeBtn.btn-get-code {
        width: 98vw;
        height: 42px;
        border-radius: 25px;
        font-size: 15px;
        padding: 0 10px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 42px;
        padding: 0 10px;
        border-radius: 25px;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 13px !important;
    }
}

@media (max-width: 320px) {
    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn {
        min-height: 40px;
        height: 40px;
        border-radius: 20px;
        font-size: 14px;
        padding: 0 10px;
    }

    .pt-home-view .buttons {
        width: 95vw;
    }

    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        height: 40px;
        border-radius: 20px;
        font-size: 14px;
        padding: 0 10px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 40px;
        padding: 8px;
        border-radius: 20px;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 12px !important;
    }
}

/* Account bar mockup corrections */
.pt-account-bar:not(.is-expanded):not(.is-logged-in) {
    width: 181px;
    height: 51px;
    min-height: 51px;
    padding: 0;
    justify-content: center;
    background: #1A1A1A;
    border-radius: 155px;
}

.pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-account-bar__orders {
    width: 130px;
    height: 23px;
    min-height: 23px;
    gap: 11px;
    padding: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 130.61%;
}

.pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-lock-icon {
    width: 19px;
    height: 21px;
    flex: 0 0 19px;
}

.pt-account-bar.is-expanded {
    width: min(686px, calc(100vw - 32px));
    min-height: 57px;
    padding: 9px 10px;
    gap: 8px;
}

.pt-account-bar.is-expanded .pt-account-bar__orders {
    width: 130px;
    height: 23px;
    min-height: 23px;
    gap: 11px;
    padding: 0;
    flex: 0 0 130px;
    font-size: 17px;
    font-weight: 500;
    line-height: 130.61%;
}

.pt-account-bar.is-expanded .pt-lock-icon {
    width: 19px;
    height: 21px;
    flex: 0 0 19px;
}

.pt-account-bar.is-expanded .pt-account-bar__fields {
    display: grid;
    grid-template-columns: minmax(0, 276px) minmax(0, 175px) 39px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.pt-account-bar__fields > * {
    min-width: 0;
}

.pt-account-bar.is-expanded .pt-account-bar__fields input {
    width: 100%;
    height: 39px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    line-height: 130.61%;
}

.pt-account-bar.is-expanded #siteLoginEmail,
.pt-account-bar.is-expanded #siteOrderCodeInput {
    width: 100%;
}

.pt-account-bar.is-expanded .pt-account-bar__submit {
    display: inline-flex;
    width: 39px;
    height: 39px;
    font-size: 24px;
}

@media (max-width: 768px) {
    .pt-home-view .buttons {
        width: min(390px, calc(100vw - 48px));
        max-width: 390px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 100%;
        max-width: 390px;
    }
}

@media (max-width: 560px) {
    .pt-account-bar.is-expanded {
        width: min(520px, calc(100vw - 24px));
        min-height: 0;
        padding: 10px;
        gap: 8px;
        border-radius: 28px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__orders {
        width: 100%;
        flex: 0 0 auto;
        font-size: 17px;
        gap: 10px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields {
        width: 100%;
        flex: 0 0 100%;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr) 39px;
        gap: 6px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields input {
        height: 39px;
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pt-account-bar:not(.is-expanded):not(.is-logged-in) {
        width: 172px;
        height: 49px;
        min-height: 49px;
    }

    .pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-account-bar__orders {
        width: auto;
        height: 22px;
        min-height: 22px;
        gap: 9px;
        font-size: 16px;
    }

    .pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-lock-icon {
        width: 18px;
        height: 20px;
        flex-basis: 18px;
    }
}

@media (max-width: 360px) {
    .pt-account-bar:not(.is-expanded):not(.is-logged-in) {
        width: 164px;
        height: 46px;
        min-height: 46px;
    }

    .pt-account-bar:not(.is-expanded):not(.is-logged-in) .pt-account-bar__orders {
        font-size: 15px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) 36px;
        gap: 5px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__fields input {
        height: 36px;
        padding: 0 9px;
        font-size: 12px;
    }

    .pt-account-bar.is-expanded .pt-account-bar__submit {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }
}

/* First-screen typography from the provided mockup */
.pt-home-view {
    --pt-card-title-font-size: 26.3626px;
    --pt-card-title-line-height: 34px;
    --pt-card-field-font-size: 19px;
    --pt-card-field-line-height: 23px;
    --pt-card-action-font-size: 19px;
    --pt-card-action-line-height: 130.61%;
}

.pt-home-view,
.pt-home-view .container,
.pt-home-view input,
.pt-home-view button,
.pt-site-header,
.pt-site-header input,
.pt-site-header button {
    font-family: 'Inter', inter, Arial, sans-serif;
}

.pt-home-view .pt-code-card-title,
.pt-home-view .input-field,
.pt-home-view #customerEmailField,
.pt-home-view .pt-activate-btn,
.pt-home-view .buttons .btn,
.pt-home-view #getCodeBtn.btn-get-code,
.pt-email-suggestion label,
.pt-email-suggestion--compact {
    font-family: 'Inter', inter, Arial, sans-serif !important;
}

.pt-home-view .pt-code-card-title,
.pt-email-suggestion label,
.pt-email-suggestion--compact {
    font-size: var(--pt-card-title-font-size);
    line-height: var(--pt-card-title-line-height) !important;
    font-weight: 400;
}

.pt-home-view .input-field,
.pt-home-view #customerEmailField {
    height: 64.5px;
    border-radius: 21px;
    font-size: var(--pt-card-field-font-size);
    line-height: var(--pt-card-field-line-height);
    font-weight: 400;
}

.pt-home-view .pt-activate-btn,
.pt-home-view .buttons .btn,
.pt-home-view #getCodeBtn.btn-get-code {
    min-height: 55.5px;
    height: 55.5px;
    border-radius: 45px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 500;
}

.pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
    min-height: 55.5px;
    border-radius: 45px;
}

.pt-home-view #getCodeBtn .question {
    font-weight: 500;
}

@media (max-width: 768px) {
    .pt-home-view {
        --pt-card-title-font-size: 22px;
        --pt-card-title-line-height: 29px;
        --pt-card-field-font-size: 18px;
        --pt-card-field-line-height: 22px;
        --pt-card-action-font-size: 18px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 58px;
        border-radius: 19px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 50px;
        height: 50px;
        border-radius: 37.5px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 50px;
        border-radius: 37.5px;
    }
}

@media (max-width: 480px) {
    .pt-home-view {
        --pt-card-title-font-size: 17px;
        --pt-card-title-line-height: 22px;
        --pt-card-field-font-size: 15px;
        --pt-card-field-line-height: 19px;
        --pt-card-action-font-size: 15px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 48px;
        border-radius: 16px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 42px;
        height: 42px;
        border-radius: 25px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 42px;
        border-radius: 25px;
    }
}

@media (max-width: 320px) {
    .pt-home-view {
        --pt-card-title-font-size: 15px;
        --pt-card-title-line-height: 20px;
        --pt-card-field-font-size: 14px;
        --pt-card-field-line-height: 18px;
        --pt-card-action-font-size: 14px;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 40px;
        height: 40px;
        border-radius: 20px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 40px;
        border-radius: 20px;
    }
}

@media (min-width: 769px) {
    body:not(.pt-orders-mode) .main {
        margin-top: 34px;
    }

    .main > .cyndyk {
        width: 120px;
        margin-bottom: 16px;
    }

    .pt-home-view {
        --pt-card-vertical-gap: 18px;
        --pt-card-title-font-size: 21px;
        --pt-card-title-line-height: 27px;
        --pt-card-field-font-size: 15.2px;
        --pt-card-field-line-height: 18.4px;
        --pt-card-action-font-size: 15.2px;
    }

    .pt-home-view .container {
        width: min(336px, 92vw);
        max-width: 336px;
        min-height: 0;
        padding: var(--pt-card-vertical-gap) 34px;
        gap: var(--pt-card-vertical-gap);
        border-radius: 24px;
    }

    .pt-home-view .pt-code-card-title {
        max-width: 272px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        height: 52px;
        border-radius: 17px;
        padding: 0 16px;
    }

    .pt-email-suggestion {
        gap: var(--pt-card-vertical-gap);
    }

    .pt-home-view .pt-email-suggestion.is-active label,
    .pt-email-suggestion label,
    .pt-email-suggestion--compact {
        font-weight: 400;
    }

    .pt-home-view .pt-activate-btn,
    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        min-height: 44px;
        height: 44px;
        border-radius: 36px;
    }

    .pt-home-view .buttons {
        max-width: 312px;
        margin-top: 13px;
        gap: 10px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: min(312px, 92vw);
        max-width: 312px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 44px;
        border-radius: 36px;
        padding: 12px;
    }
}

.pt-home-view .pt-email-suggestion.is-active label {
    font-weight: 400;
}

/* SystemSeller geometry lock.
   Keep PlayTown colors/content, but use donor dimensions, spacing, radii and type scale. */
.pt-home-view {
    --pt-card-title-font-size: 18px;
    --pt-card-title-line-height: 21.6px;
    --pt-card-field-font-size: 16px;
    --pt-card-action-font-size: 16px;
    --pt-card-action-line-height: 19.2px;
    --pt-field-width: 300px;
    --pt-field-height: 60px;
    --pt-button-width: 390px;
    --pt-button-height: 50px;
    --pt-system-gap: 30px;
}

.pt-home-view .container {
    width: 90vw;
    max-width: 420px;
    min-height: 250px;
    padding: 20px;
    gap: 0;
    justify-content: center;
    border-radius: 37.5px;
    overflow: visible;
}

.pt-home-view .pt-code-card--guest {
    padding-top: 34px;
    padding-bottom: 34px;
}

.pt-home-view .pt-code-card-title {
    width: 100%;
    max-width: 380px;
    margin: 0 0 var(--pt-system-gap);
    padding: 0 20px;
    box-sizing: border-box;
    font-size: var(--pt-card-title-font-size);
    line-height: var(--pt-card-title-line-height) !important;
    font-weight: 400;
}

.pt-home-view .input-wrapper {
    width: 100%;
}

.pt-home-view .input-field,
.pt-home-view #customerEmailField {
    width: 90vw;
    max-width: var(--pt-field-width);
    height: var(--pt-field-height);
    border-radius: 21px;
    padding: 0 20px;
    font-size: var(--pt-card-field-font-size);
    line-height: normal;
    font-weight: 400;
}

.pt-email-suggestion {
    width: 100%;
    max-width: none;
    margin: var(--pt-system-gap) 0 0;
    gap: var(--pt-system-gap);
}

.pt-email-suggestion label,
.pt-email-suggestion--compact,
.pt-home-view .pt-email-suggestion.is-active label {
    padding: 0 20px;
    font-size: var(--pt-card-title-font-size);
    line-height: var(--pt-card-title-line-height) !important;
    font-weight: 400;
}

.pt-email-suggestion--compact {
    margin: var(--pt-system-gap) 0 0;
}

.pt-home-view .pt-activate-btn {
    width: 90vw;
    max-width: var(--pt-field-width);
    min-height: var(--pt-button-height);
    height: var(--pt-button-height);
    margin: var(--pt-system-gap) 0 0;
    border-radius: 37.5px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 400;
    padding: 0 15px;
}

.pt-home-view .buttons {
    width: 100%;
    max-width: var(--pt-button-width);
    margin-top: var(--pt-system-gap);
    gap: 15px;
}

.pt-home-view .buttons .btn,
.pt-home-view #getCodeBtn.btn-get-code {
    width: 90vw;
    max-width: var(--pt-button-width);
    min-height: var(--pt-button-height);
    height: var(--pt-button-height);
    border-radius: 37.5px;
    padding: 0 15px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 400;
}

.pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
    min-height: var(--pt-button-height);
    height: auto !important;
    padding: 15px;
    border-radius: 37.5px;
}

.pt-home-view #getCodeBtn .question {
    margin-bottom: 8px;
    font-size: var(--pt-card-action-font-size);
    line-height: var(--pt-card-action-line-height) !important;
    font-weight: 700;
}

.pt-home-view #getCodeBtn .answer {
    font-size: 14px !important;
    line-height: 16.8px !important;
    font-weight: 400;
}

.rating-box,
.pt-order-memo-page .rating-box {
    width: 90vw;
    max-width: 420px;
    min-width: 380px;
    min-height: 70px;
    padding: 25px 25px 20px !important;
    border-radius: 35px;
}

.rating-box p,
.pt-order-memo-page .rating-box p {
    margin: 0 0 16px;
    font-size: 14px !important;
    line-height: 16.8px;
    font-weight: 600;
}

.rating-box .stars,
.pt-order-memo-page .rating-box .stars {
    gap: 8px;
}

.rating-box .star,
.pt-order-memo-page .rating-box .star {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.pt-orders-page-card {
    width: 90vw;
    max-width: 420px;
    min-height: 420px;
    padding: 42px 30px 32px;
    border-radius: 37.5px;
}

.pt-orders-page-title {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 21.6px;
    font-weight: 400;
}

.pt-order-row {
    min-height: 64.5px;
    border-radius: 21px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    padding: 0 22px;
    gap: 14px;
}

.pt-order-row__name,
.pt-order-row__date {
    font-size: 19px;
    line-height: 23px;
    font-weight: 400;
}

.pt-orders-dots {
    gap: 7px;
    padding-top: 30px;
}

.pt-orders-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.38);
}

.pt-orders-dot.is-active {
    background: #ffffff;
}

@media (max-width: 768px) {
    .pt-home-view {
        --pt-card-title-font-size: 16px;
        --pt-card-title-line-height: 19.2px;
        --pt-card-field-font-size: 15px;
        --pt-card-action-font-size: 16px;
        --pt-card-action-line-height: 19.2px;
        --pt-button-width: none;
    }

    .pt-home-view .container {
        width: 90vw;
        max-width: 420px;
        min-height: 250px;
        padding: 20px;
        border-radius: 37.5px;
    }

    .pt-home-view .pt-code-card--guest {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        width: 85vw;
        max-width: 300px;
        height: 55px;
    }

    .pt-home-view .pt-activate-btn {
        height: 45px;
        min-height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
        line-height: 19.2px !important;
        font-weight: 400;
    }

    .pt-home-view .buttons {
        width: 95vw;
        max-width: none;
        margin-top: 30px;
        gap: 15px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        max-width: none;
        height: 45px;
        min-height: 45px;
        border-radius: 37.5px;
        font-size: 16px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 45px;
        padding: 0 15px;
        border-radius: 37.5px;
    }

    .rating-box,
    .pt-order-memo-page .rating-box {
        width: 90vw;
        max-width: 400px;
        min-width: 0;
        min-height: 70px;
        margin: 30px auto;
        border-radius: 35px;
    }
}

@media (max-width: 480px) {
    .pt-home-view {
        --pt-card-title-font-size: 15px;
        --pt-card-title-line-height: 18px;
        --pt-card-field-font-size: 14px;
        --pt-card-action-font-size: 15px;
        --pt-card-action-line-height: 18px;
        --pt-system-gap: 20px;
    }

    .pt-home-view .container {
        width: 90vw;
        max-width: 420px;
        min-height: 250px;
        margin: 10px auto;
        padding: 20px;
        border-radius: 37.5px;
    }

    .pt-home-view .pt-code-card--guest {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .pt-home-view .pt-code-card-title {
        max-width: none;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        width: 90vw;
        max-width: 300px;
        height: 50px;
        border-radius: 21px;
        font-size: 14px;
    }

    .pt-email-suggestion {
        margin-top: 20px;
        gap: 20px;
    }

    .pt-email-suggestion label,
    .pt-email-suggestion--compact,
    .pt-home-view .pt-email-suggestion.is-active label {
        padding: 0 10px;
        font-size: 15px;
        line-height: 18px !important;
    }

    .pt-home-view .pt-activate-btn {
        width: 90vw;
        max-width: 300px;
        height: 42px;
        min-height: 42px;
        margin-top: 20px;
        border-radius: 25px;
        font-size: 15px;
        line-height: 18px !important;
        font-weight: 400;
        padding: 0 12px;
    }

    .pt-home-view .buttons {
        width: 98vw;
        max-width: none;
        margin-top: 20px;
        gap: 12px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 98vw;
        max-width: none;
        height: 42px;
        min-height: 42px;
        border-radius: 25px;
        font-size: 15px;
        line-height: 18px !important;
        padding: 0 10px;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 42px;
        padding: 10px;
        border-radius: 25px;
    }

    .pt-home-view #getCodeBtn .question {
        font-size: 15px;
        line-height: 18px !important;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 13px !important;
        line-height: 15.6px !important;
    }

    .rating-box,
    .pt-order-memo-page .rating-box {
        width: 90vw;
        max-width: 400px;
        padding: 25px 25px 20px !important;
        border-radius: 15px;
    }

    .pt-orders-page-card {
        width: 98vw;
        max-width: none;
        border-radius: 20px;
        padding: 34px 15px 28px;
    }

    .pt-orders-page-title {
        font-size: 15px;
        line-height: 18px;
    }

    .pt-order-row {
        min-height: 64.5px;
        border-radius: 21px;
        padding: 0 16px;
        gap: 12px;
    }

    .pt-order-row__name,
    .pt-order-row__date {
        font-size: 15px;
        line-height: 18px;
    }
}

@media (max-width: 360px) {
    .pt-home-view .input-field,
    .pt-home-view #customerEmailField,
    .pt-home-view .pt-activate-btn {
        width: calc(90vw - 24px);
        max-width: 300px;
    }
}

@media (max-width: 320px) {
    .pt-home-view {
        --pt-card-title-font-size: 14px;
        --pt-card-title-line-height: 16.8px;
        --pt-card-field-font-size: 13px;
        --pt-card-action-font-size: 14px;
        --pt-card-action-line-height: 16.8px;
    }

    .pt-home-view .container {
        width: 90vw;
        min-height: 250px;
        padding: 20px;
        border-radius: 37.5px;
    }

    .pt-home-view .pt-code-card--guest {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .pt-home-view .input-field,
    .pt-home-view #customerEmailField {
        width: calc(90vw - 24px);
        max-width: 300px;
        height: 45px;
        font-size: 13px;
    }

    .pt-home-view .pt-activate-btn {
        width: calc(90vw - 24px);
        max-width: 300px;
        height: 40px;
        min-height: 40px;
        border-radius: 20px;
        font-size: 14px;
        line-height: 16.8px !important;
        font-weight: 400;
    }

    .pt-home-view .buttons {
        width: 100vw;
        gap: 10px;
    }

    .pt-home-view .buttons .btn,
    .pt-home-view #getCodeBtn.btn-get-code {
        width: 95vw;
        height: 40px;
        min-height: 40px;
        border-radius: 20px;
        font-size: 14px;
        line-height: 16.8px !important;
    }

    .pt-home-view #getCodeBtn.btn-get-code.btn-expanded {
        min-height: 40px;
        padding: 8px;
        border-radius: 20px;
    }

    .pt-home-view #getCodeBtn .question {
        font-size: 14px;
        line-height: 16.8px !important;
    }

    .pt-home-view #getCodeBtn .answer {
        font-size: 12px !important;
        line-height: 14.4px !important;
    }
}

/* === Сундук ре-скин: тёмный текст на жёлтых карточках/кнопках (PlayTown был белым на фиолетовом) === */
.container .text,
.pt-code-card-title,
.pt-email-suggestion,
.pt-email-suggestion label,
.pt-email-suggestion--compact,
.btn-get-code,
.btn-continue,
.pt-activate-btn,
.console-change-link,
.chat-btn,
.activated-message,
.pt-orders-page-title,
.pt-order-memo-title,
.pt-order-memo-content,
.pt-order-memo-name,
.pt-order-memo-code,
.loader,
.loading-container {
    color: #1A1A1A !important;
}

/* Красные поп-апы ошибок и чёрная плашка «Мои заказы» — текст остаётся белым */
.desktop-error,
.mobile-error-popup,
.pt-account-bar__orders,
#siteOrdersLabel,
.pt-account-bar__submit,
.pt-account-bar__logout,
.pt-header-btn--dark {
    color: #ffffff !important;
}

/* Сундук: «Активировать» — контрастная тёмная кнопка на жёлтой карточке */
.pt-activate-btn,
.pt-home-view .pt-activate-btn {
    background: #1A1A1A !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}
.pt-activate-btn:hover,
.pt-home-view .pt-activate-btn:hover {
    background: #000000 !important;
}

/* Сундук: ссылки в FAQ/инструкциях/памятке — контрастный тёмно-синий на жёлтом (был дефолтный светлый) */
.answer a,
.expanded-text a,
.text a,
.pt-order-memo-content a,
.activated-message a {
    color: #0a3d91 !important;
    font-weight: 600;
    text-decoration: underline;
}
.answer a:hover,
.expanded-text a:hover,
.text a:hover,
.pt-order-memo-content a:hover {
    color: #062a66 !important;
}

/* systemseller: квадратный логотип-геймпад по высоте как у текстовых лого остальных сайтов (~34px, не 150px) */
.main > .cyndyk,
.cyndyk,
body.pt-order-memo-mode .main > .cyndyk {
    width: auto !important;
    height: 34px !important;
    margin-bottom: 20px;
}
