/*
 * mobile.css — Мобильная адаптация CPPS.APP
 * Подключать ПОСЛЕ всех существующих стилей сайта.
 * Без Tailwind CSS.
 */

:root {
    --vh: 1vh;
}

/* ============================================================
   ОБЩИЕ МОБИЛЬНЫЕ ПРАВИЛА (≤ 768px)
   ============================================================ */
@media screen and (max-width: 1000px) {

    html, body {
        min-width: 0 !important;
        overflow-x: hidden;
        width: 100%;
    }

    #page {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    #notification-area {
        min-width: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    #notification-area .notification-message .responsive-block-inner {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }

    /* ============================================================
       HEADER / NAV
       ============================================================ */
    #section-header {
        width: 100%;
        box-sizing: border-box;
    }

    header nav {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 10px;
        box-sizing: border-box;
        gap: 0;
    }

    header nav a#home-link {
        float: none;
        flex-shrink: 0;
        display: block;
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    header nav ul.mainnav {
        flex: 1 1 0;
        min-width: 0;
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        float: none;
        padding: 0;
        margin: 0;
        background: none;
        gap: 2px;
        align-items: center;
    }

    header nav ul.mainnav::-webkit-scrollbar {
        display: none;
    }

    header nav ul.mainnav li {
        flex-shrink: 0;
        margin: 0;
        display: inline-flex;
        align-items: center;
    }

    header nav ul.mainnav a {
        font-size: 12px;
        white-space: nowrap;
        padding: 4px 7px;
        display: block;
        line-height: 20px;
        height: 20px;
    }

    #online {
        position: static !important;
        left: auto !important;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto !important;
        padding: 0 8px !important;
        margin: 0 6px;
        white-space: nowrap;
        line-height: 26px;
        border-radius: 10px;
        font-size: 13px;
    }

    header nav ul.navbar-right {
        position: static !important;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    header nav ul.navbar-right li {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

    header nav a.logout {
        padding: 0 8px;
        font-size: 12px;
        line-height: 26px;
        white-space: nowrap;
        border-radius: 5px;
    }

    header #banner {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 0;

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }



    /* ============================================================
       MAIN — BILLBOARDS
       ============================================================ */
    main {
        display: block;
        width: 100%;
    }

    main section#billboards {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        position: static;
    }

    main section#billboards img {
        width: 100%;
        height: auto;
        border-radius: 0;
        display: block;
        margin: 0;
    }

    /* ============================================================
       MAIN — ACTIONS (кнопки вертикально)
       ============================================================ */
    main section#actions {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        position: static !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;

        padding: 18px 20px 26px;
        box-sizing: border-box;
        margin: 0;
        border-radius: 0;
    }

    main section#actions .cp-logo {
        display: none;
    }

    main section#actions div {
        position: static !important;
        display: block !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 340px;
        height: auto !important;
        padding: 0 !important;
        background-image: none !important;
        text-align: center;
        color: white;
    }

    main section#actions div#create {
        position: static !important;
        padding-left: 0 !important;
        background: none !important;
    }

    main section#actions div#login {
        position: static !important;
        padding-right: 0 !important;
        background: none !important;
    }

    main section#actions a.action-button {
        display: block !important;
        width: 100%;
        max-width: 340px;
        height: 54px;
        line-height: 54px;
        font-size: 18px;
        text-align: center;
        box-sizing: border-box;
        padding: 0 16px;
        margin: 0 auto;
    }

    main section#actions a#penguin-login {
        background: linear-gradient(-180deg, #ffe477 0%, #ffcc00 100%);
        color: #6E4E00 !important;
        border: 1px solid #FF9D00;
        box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.15), inset 0 2px 0 0 #FFF7D7;
        text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
        border-radius: 8px;
    }

    main section#actions a#penguin-login:hover,
    main section#actions a#penguin-login:active {
        background: linear-gradient(-180deg, #ffcc00 0%, #ffe477 100%) !important;
        color: #6E4E00 !important;
    }

    /* ============================================================
       FOOTER
       ============================================================ */
    footer {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 16px 12px;
    }

    footer p#footer-legal {
        margin: 6px 0 0;
    }
}

/* ============================================================
   ПОРТРЕТНЫЙ РЕЖИМ
   ============================================================ */
@media screen and (max-width: 768px) and (orientation: portrait) {

    main section#actions {
        flex-direction: column !important;
    }

    main section#billboards img {
        content: url("/img/Mobile-Billboard.webp");
    }

    main section#billboards img {
        width: 100%;
        height: auto;
    }

    main section#D_F_GameSection #cp_flash {
        height: 30vh;
        width: 52%;
        top: 30%;
    }
}

/* ============================================================
   FULLSCREEN MOBILE LAYOUT — ПОРТРЕТ
   Без скролла. Экран = высота viewport
   ============================================================ */
@media screen and (max-width: 768px) {

    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
    }

    body {
        display: flex;
        flex-direction: column;
    }

    #page {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        /* --vh выставляется JS-ом и учитывает реальный viewport */
        height: calc(var(--vh, 1vh) * 100);
        max-height: calc(var(--vh, 1vh) * 100);
        overflow: hidden;
    }

    #section-header {
        flex-shrink: 0;
    }

    header #banner {
        flex-shrink: 0;
    }

    main {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        /* min-height: 0 — ключ к тому, что flex-child не переполняет родителя */
        min-height: 0;
        overflow: hidden;
    }

    main section#billboards {
        flex: 1 1 auto;
        display: flex;
        align-items: stretch;
        justify-content: center;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    main section#billboards img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        max-height: none;
        min-height: 0;
        display: block;
    }

    main section#actions {
        flex-shrink: 0;
        margin: 0 !important;
        padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }

    main section#actions .cp-logo {
        height: 1.8em !important;
        margin-bottom: 2px;
    }

    main section#actions a.action-button {
        height: 58px;
        line-height: 58px;
        font-size: 18px;
        font-weight: bold;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }

    main section#actions a#penguin-login {
        transform: translateY(0);
        transition: transform 140ms ease, box-shadow 140ms ease;
    }

    main section#actions a#penguin-login:active {
        transform: translateY(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    footer {
        display: none !important;
    }
}

/* ============================================================
   FULLSCREEN MOBILE LAYOUT — ЛАНДШАФТ
   Header остаётся. Billboard слева, Actions справа.
   Ни один элемент не выходит за пределы экрана.
   ============================================================ */
@media screen and (max-width: 900px) and (orientation: landscape) {

    html, body {
        width: 100%;
        height: 100%;
        /* Жёсткий запрет скролла в обоих направлениях */
        overflow: hidden !important;
    }

    #page {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: calc(var(--vh, 1vh) * 100);
        max-height: calc(var(--vh, 1vh) * 100);
        overflow: hidden;
    }

    /* ── Header: компактный, никуда не исчезает ── */
    #section-header {
        flex-shrink: 0;
        width: 100%;
        z-index: 10;
    }

    header nav {
        height: 44px;
        padding: 0 10px;
        min-width: 0 !important;
        width: 100% !important;
    }

    header #banner {
        display: none !important;
    }

    /* ── Main: горизонтальный split ── */
    main {
        /* Занимает всё что осталось после header */
        flex: 1 1 auto;
        /* min-height: 0 критически важен — без него flex-item
           не ограничивается и вызывает скролл */
        min-height: 0;
        overflow: hidden;

        display: flex;
        flex-direction: row;
    }

    /* ── Billboard: занимает всю оставшуюся ширину ── */
    main section#billboards {
        flex: 1 1 auto;
        min-width: 0;
        /* min-height: 0 — аналогично, не даёт переполниться */
        min-height: 0;
        overflow: hidden;
        position: relative;
    }

    main section#billboards img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

    /* ── Actions: боковая панель справа, фиксированная ширина ── */
    main section#actions {
        flex-shrink: 0;
        width: 280px !important;
        min-width: 280px;
        min-height: 0;
        /* Вертикальный скролл только если контент не влезает */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center;
        gap: 10px;

        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        box-sizing: border-box;

        border-top: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    main section#actions div {
        max-width: 100%;
    }

    main section#actions a.action-button {
        height: 48px !important;
        line-height: 48px !important;
        font-size: 15px !important;
    }

    /* В landscape кнопки чуть компактнее */
    main section#actions .cpps-ruffle-notice {
        font-size: 10px;
        padding: 7px 9px;
    }

    footer {
        display: none !important;
    }
}

/* ============================================================
   RUFFLE NOTICE — информационная плашка в #actions
   Показывается вместо попапа, до входа в игру
   ============================================================ */
.cpps-ruffle-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 340px;
    padding: 9px 11px;
    box-sizing: border-box;
    margin: 0 auto;

    /* Лёгкий синий фон — гармонирует с тайловым bg #actions */
    background: rgba(0, 63, 114, 0.09);
    border: 1px solid rgba(0, 63, 114, 0.18);
    border-left: 3px solid #22a4f3;
    border-radius: 0 6px 6px 0;

    font-family: 'proxima_nova_regular', Helvetica, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.55;
    color: #003e72;
    text-align: left;

    /* Плавное появление */
    animation: cpps-notice-in 0.4s ease forwards;
}

@keyframes cpps-notice-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cpps-ruffle-notice strong {
    font-family: 'proxima_nova_bold', Helvetica, Arial, sans-serif;
    color: #002d5a;
}

.cpps-ruffle-notice-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #22a4f3;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: bold;
    line-height: 1;
    margin-top: 1px;
}

/* ============================================================
   ОВЕРЛЕЙ «ПОВЕРНИТЕ УСТРОЙСТВО»
   ============================================================ */
#cpps-rotate-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #001a3e 0%, #003070 55%, #004fa0 100%);
    overflow: hidden;
    animation: cpps-overlay-in 0.3s ease forwards;
}

@keyframes cpps-overlay-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cpps-flake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    animation: cpps-fall linear infinite;
}

@keyframes cpps-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

#cpps-rotate-overlay .cpps-card {
    position: relative;
    z-index: 1;
    width: 88%;
    max-width: 320px;
    background: #22a4f3;
    border: 4px solid #21c0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.55);
    animation: cpps-card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cpps-card-in {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#cpps-rotate-overlay .cpps-card-header {
    background: #018ae4;
    padding: 14px 20px 12px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

#cpps-rotate-overlay .cpps-card-header img {
    height: 28px;
    display: inline-block;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
}

#cpps-rotate-overlay .cpps-card-body {
    padding: 22px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#cpps-rotate-overlay .cpps-phone-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 0;
}

#cpps-rotate-overlay .cpps-phone {
    width: 34px;
    height: 56px;
    border: 3px solid #fff;
    border-radius: 6px;
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    animation: cpps-phone-turn 2.8s ease-in-out infinite;
    transform-origin: center center;
}

#cpps-rotate-overlay .cpps-phone::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 2px;
}

#cpps-rotate-overlay .cpps-phone::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
}

#cpps-rotate-overlay .cpps-arrow {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 22px;
    color: #FFCC00;
    font-weight: bold;
    line-height: 1;
    animation: cpps-arrow-pulse 2.8s ease-in-out infinite;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@keyframes cpps-phone-turn {
    0%, 15% {
        transform: rotate(0deg);
    }
    45%, 75% {
        transform: rotate(90deg);
    }
    95%, 100% {
        transform: rotate(0deg);
    }
}

@keyframes cpps-arrow-pulse {
    0%, 15% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    35% {
        opacity: 1;
        transform: scale(1.15);
    }
    55%, 75% {
        opacity: 0.5;
        transform: scale(1);
    }
    95%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

#cpps-rotate-overlay .cpps-title {
    font-family: 'proxima_nova_bold', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 20px;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

#cpps-rotate-overlay .cpps-body {
    font-family: 'proxima_nova_regular', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0;
    max-width: 240px;
}

#cpps-rotate-overlay .cpps-btn-skip {
    display: inline-block;
    margin-top: 4px;
    padding: 0 20px;
    height: 42px;
    line-height: 42px;
    font-family: 'proxima_nova_bold', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    color: #6E4E00;
    text-decoration: none;
    background: linear-gradient(-180deg, #ffe477 0%, #ffcc00 100%);
    border: 1px solid #b38900;
    border-radius: 8px;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 0 #FFF7D7;
    text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
    cursor: pointer;
    transition: background 150ms ease, box-shadow 150ms ease;
    white-space: nowrap;
}

#cpps-rotate-overlay .cpps-btn-skip:hover,
#cpps-rotate-overlay .cpps-btn-skip:active {
    background: linear-gradient(-180deg, #ffcc00 0%, #ffe477 100%);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.18), inset 0 1px 0 0 #FFF7D7;
    color: #6E4E00;
    text-decoration: none;
}

/* ============================================================
   IN-GAME MOBILE LANDSCAPE FIX
   Когда игра уже открыта
   ============================================================ */
@media screen and (max-width: 1000px) and (orientation: landscape) {

    html,
    body,
    #page {
        width: 100%;
        height: calc(var(--vh, 1vh) * 100);
        max-height: calc(var(--vh, 1vh) * 100);
        overflow: hidden !important;
    }

    body {
        margin: 0;
        padding: 0;
    }

    #page {
        display: flex;
        flex-direction: column;
    }

    /* ─────────────────────────────────────
       HEADER
    ───────────────────────────────────── */
    #section-header {
        flex-shrink: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        z-index: 100;
    }

    header nav {
        min-height: 38px !important;
        height: 38px !important;

        padding: 0 8px !important;

        display: flex !important;
        align-items: center;

        box-sizing: border-box;
    }

    header nav ul.mainnav a {
        font-size: 11px !important;
        padding: 2px 6px !important;
        line-height: 18px !important;
    }

    header nav ul.navbar-right {
        right: 70px;
    }

    /* Баннер полностью убираем */
    header #banner {
        display: none !important;
    }

    /* ─────────────────────────────────────
       CONTENT
    ───────────────────────────────────── */
    #content,
    #game,
    .game,
    .game-container,
    .ruffle-player,
    .ruffle_embed,
    #ruffle-player {
        flex: 1 1 auto !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;

        overflow: hidden !important;
        box-sizing: border-box;
    }

    /* Если игра внутри iframe/object/embed */
    iframe,
    embed,
    object,
    canvas {
        width: 100% !important;
        height: 100% !important;

        max-width: 100% !important;
        max-height: 100% !important;

        display: block;
        border: none !important;
    }

    /* Главный контейнер страницы */
    main {
        flex: 1 1 auto !important;

        display: flex !important;
        flex-direction: column !important;

        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* ─────────────────────────────────────
       УБИРАЕМ НИЖНИЕ ПОДПИСИ
    ───────────────────────────────────── */
    footer,
    #footer,
    #footer-legal,
    .footer,
    .legal,
    .copyright,
    .disclaimer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;

        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    /* ─────────────────────────────────────
       УБИРАЕМ ЛИШНИЕ ОТСТУПЫ
    ───────────────────────────────────── */
    main,
    #content,
    .content,
    #game,
    .game-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    main section#D_F_GameSection #cp_flash {
        height: 75vh;
    }
}

/* ============================================================
   LOGIN PAGE — MOBILE LANDSCAPE GRID FIX
   Левая часть = billboard
   Правая часть = actions
   ============================================================ */
@media screen and (max-width: 1000px) and (orientation: landscape) {

    /* Главный layout */
    main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-rows: 1fr;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    /* ─────────────────────────────────────
       Левая колонка — картинка
    ───────────────────────────────────── */
    main section#billboards {
        grid-column: 1;
        grid-row: 1;

        position: relative;
        overflow: hidden;

        width: 100% !important;
        height: 100% !important;
        min-width: 0;
        min-height: 0;

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

    main section#billboards img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;

        display: block;
        flex: 1 1 auto;
    }

    /* ─────────────────────────────────────
       Правая колонка — UI
    ───────────────────────────────────── */
    main section#actions {
        grid-column: 2;
        grid-row: 1;

        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 0;

        flex-direction: column;
        display: flex;

        align-content: center;
        justify-items: stretch;

        gap: 12px;

        padding:
            18px
            18px
            calc(18px + env(safe-area-inset-bottom, 0px));

        box-sizing: border-box;

        overflow-y: auto;
        overflow-x: hidden;

        border-left: 1px solid rgba(255,255,255,0.12);
        box-shadow: -8px 0 24px rgba(0,0,0,0.35);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* ─────────────────────────────────────
       Лого
    ───────────────────────────────────── */
    main section#actions .cp-logo {
        display: none;
    }

    /* ─────────────────────────────────────
       Блоки-кнопки
    ───────────────────────────────────── */
    main section#actions div {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        position: static !important;
    }

    /* ─────────────────────────────────────
       Кнопки
    ───────────────────────────────────── */
    main section#actions a.action-button {
        width: 100% !important;
        max-width: none !important;

        height: 52px !important;
        line-height: 52px !important;

        font-size: 16px !important;
        font-weight: bold;

        margin: 0 !important;
    }

    /* ─────────────────────────────────────
       Notice
    ───────────────────────────────────── */
    main section#actions .cpps-ruffle-notice {
        width: 100%;
        max-width: none;

        margin: 2px 0 0;

        font-size: 11px;
        line-height: 1.45;
    }

    /* Убираем странные absolute-позиции
       из старых desktop-стилей */
    main section#actions *,
    main section#actions div#create,
    main section#actions div#login {
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
}