/*
 Theme Name:   Twenty Twenty-One Child
 Description:  Дочерняя тема для Twenty Twenty-One
 Template:     twentytwentyone
 Version:      1.0.0
*/

.site-content {
    background-image: url(/wp-content/uploads/2026/06/agbg.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.kartwrapbg {
    background-image: url(/wp-content/uploads/2026/07/kartbg2.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 47px 0px;
}
.finishline {
    background-image: url(/wp-content/uploads/2026/06/finishline.svg);
    background-size: inherit;
    margin: 0px !important;
    width: 100%;
    height: 61px;
}
.logintitle {
    max-width: max-content;
    width: 100%;
    margin: 0 auto;
    display: block;
}
.regtitle {
    max-width: max-content;
    width: 100%;
    margin: 0 auto;
    display: block;
}
.authlogomadi {
    max-width: 664px;
    width: 100%;
    margin: 0 auto;
    display: block;
    margin-bottom: 50px;
}
#game-register-block {
    display: block;
    background-image: url(/wp-content/uploads/2026/06/authblokbg.png);
    background-size: 100% 100% !important;
    margin-bottom: 20px;
    background-position: center;
    background-repeat: no-repeat !important;
    padding: 60px 80px 104px 80px;
}
#game-login-block {
    display: block;
    background-image: url(/wp-content/uploads/2026/06/authblokbg.png);
    background-size: 100% 100% !important;
    margin-bottom: 20px;
    background-position: center;
    background-repeat: no-repeat !important;
    padding: 60px 80px 104px 80px;
}
#game-lost-block {
    background-image: url(/wp-content/uploads/2026/06/authblokbg.png);
    background-size: 100% 100% !important;
    margin-bottom: 20px;
    background-position: center;
    background-repeat: no-repeat !important;
    padding: 60px 80px 104px 80px;
}
#tab-shop {
    background: rgb(118, 118, 118);
    padding: 15px;
    border-radius: 12px;
    border: 3px solid rgb(0, 0, 0);
}
.game-topbar-logo {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-end;
    max-width: 365px;
    width: 100%;
}
.authlogo {
    max-width: 365px;
    width: 100%;
}
.game-max-btn {
    display: block;
    color: #000;
    text-decoration: none !important;
    background: #c7c7c7 !important;
    font-size: 13px;
    text-align: center;
    padding: 10px 10px;
    border-radius: 5px;
    font-weight: bold;
}
.game-tg-btn {
    display: block;
    color: #000;
    text-decoration: none !important;
    background: #c7c7c7 !important;
    font-size: 13px;
    text-align: center;
    padding: 10px 10px;
    border-radius: 5px;
    font-weight: bold;
}
.game-max-btn:hover {
    color: #ffffff;
    background: #383838 !important;
}
.game-tg-btn:hover {
    color: #ffffff;
    background: #383838 !important;
}

/* Меню шапки */
.game-account-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    position: relative; 
}

.game-topbar-stats { 
    display: flex; 
    gap: 20px; 
}

.game-menu-toggle { 
    display: block; 
    background: #1e293b; 
    border: 1px solid #334155; 
    color: #fff; 
    padding: 8px 15px; 
    cursor: pointer; 
    border-radius: 6px; 
    font-size: 20px; 
}

.game-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); 
    right: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    display: none; 
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 200px;
    border: 1px solid #e2e8f0;
}

.game-dropdown-menu.is-active {
    display: flex; 
}

.game-dropdown-header {
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 5px;
}

.game-logout-btn {
    color: #f43f5e;
    text-decoration: none;
    font-weight: 600;
}

/* =========================================================================
   АВТОГОЧИ: СТИЛИ СТРАНИЦЫ АВТОРИЗАЦИИ И РЕГИСТРАЦИИ
   ========================================================================= */

.game-auth-container {
    max-width: 610px;
    margin: 60px auto;
    font-family: sans-serif;
}

.game-auth-container .game-auth-switch-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    margin: 20px 0px;
    text-align: center;
}

.game-auth-container .game-auth-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.game-auth-container .game-auth-input {
    width: 100%;
    font-size: 15px;
    padding: 21px;
    box-sizing: border-box;
    background: none !important;
    border: none !important;
    background-image: url(/wp-content/uploads/2026/06/typebg.png) !important;
    background-size: 100% 100% !important;
    margin-bottom: 20px;
    background-position: center;
    background-repeat: no-repeat !important;
}
.game-auth-container .game-auth-input::placeholder {
    color: #FFF;
    opacity: 25%;
    font-size: 24px;
    line-height: 24px;
}

.game-auth-container .game-auth-forgot-wrap {
    text-align: right;
    margin-top: -5px;
}

.game-auth-container .game-auth-forgot-link {
    color: #ffffff;
    font-size: 13px;
    text-decoration: underline;
    font-weight: bold;
    background: none !important;
}

.game-auth-container .game-auth-submit-wrap {
    margin-top: 25px;
}

.game-auth-container .game-auth-btn {
    width: 100%;
    max-width: 158px;
    background-color: unset !important;
    color: #000000;
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    background-image: url(/wp-content/uploads/2026/06/authbtnbg.svg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 0 auto;
    display: block;
    text-transform: uppercase;
    padding: 18px 0px;
}
.game-auth-container .game-auth-btn:hover {
    color: #6fc784 !important;
}

.game-auth-container .game-auth-checkbox-wrap {
    margin-top: 15px;
}
.game-auth-container .game-auth-checkbox-wrap input:after {
        left: 3px;
        top: -1px;
}

.game-auth-container .game-auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
}

.game-auth-container .game-auth-checkbox {
    width: 18px;
    height: 18px;
}

.game-auth-container .game-auth-heading {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.game-auth-container .game-auth-error {
    color: #ef4444;
    font-weight: 600;
    font-size: 14px;
    background: #fef2f2;
    padding: 10px;
    border-radius: 6px;
}

.game-auth-container .game-auth-success {
    color: #16a34a;
    font-weight: 600;
    font-size: 14px;
    background: #f0fdf4;
    padding: 10px;
    border-radius: 6px;
}


/* =========================================================================
   АВТОГОЧИ: СТИЛИ КУЗОВА И ЛИЧНОГО КАБИНЕТА ПИЛОТА
   ========================================================================= */

.game-account-page {
    padding: 40px 20px;
    min-height: 100vh;
    font-family: sans-serif;
    position: relative;
    margin: 0px !important;
}

#daily-bonus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 99999;
    display: flex; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    padding: 15px; 
}

#daily-bonus-modal .game-bonus-card {
    background-image: url(/wp-content/uploads/2026/06/bonusbg.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    max-width: 1100px;
    width: 100%;
    text-align: center;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-sizing: border-box;
}

#daily-bonus-modal .game-bonus-title {
    margin-top: 119px;
    font-size: 34px;
    color: #fff;
    line-height: 1.0;
    font-weight: 800;
    text-transform: uppercase;
}

#daily-bonus-modal .game-bonus-value {
    display: inline-block;
    color: #000;
    font-size: 32px;
    font-weight: 900;
    padding: 0px 35px;
    border-radius: 12px;
    margin: 15px 0 25px 0;
    background-image: url(/wp-content/uploads/2026/06/lsbg.svg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

#daily-bonus-modal .game-bonus-icon {
    max-width: 100%;
    height: auto;
    max-height: 250px; 
    object-fit: contain;
}

#daily-bonus-modal .game-bonus-btn {
    display: block;
    width: 100%;
    max-width: 440px;
    padding: 26px;
    background: #000;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 38px;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
    background-image: url(/wp-content/uploads/2026/06/lsbg.svg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 20px auto 36px auto;
}

.game-account-container {
    max-width: 1100px;
    margin: 0 auto !important;
}

.game-account-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #383838;
    border: 3px solid #000;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-account-topbar .game-topbar-label {
    color: #40ed6e;
    font-size: 14px;
    font-weight: bold;
    display: block;
    text-transform: uppercase;
}

.game-account-topbar .game-topbar-val {
    font-size: 18px;
}

.game-account-topbar .game-topbar-val.is-money {
    color: #eab308;
    display: flex;
    gap: 5px;
    align-items: start;
}

.game-account-topbar .game-topbar-val.is-hp {
    color: #ef4444;
    display: flex;
    gap: 5px;
    align-items: start;
}

.game-account-topbar .game-logout-btn {
    color: #f43f5e;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #f43f5e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
}

.game-account-topbar .game-logout-btn:hover {
    background: #f43f5e;
    color: #fff;
}

.game-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.game-tour-btn-wrap {
    display: inline-block;
    text-align: center;
}

.game-countdown-wrap {
    margin-bottom: 25px;
    padding-left: 5px;
}

.game-countdown-wrap .game-status-text {
    font-size: 13px;
    font-weight: bold;
}

.game-countdown-wrap .game-status-text.is-locked {
    color: #ef4444;
}

.game-countdown-wrap .game-status-text.is-open {
    color: #22c55e;
}

.game-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    background: #5e5e5e;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #000000;
}

.game-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-shop-empty {
    grid-column: span 4;
    text-align: center;
    color: #64748b;
    padding: 40px;
}

.shop-item-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.shop-item-card.is-installed {
    opacity: 0.6;
}

.shop-item-card.is-hidden-by-filter {
    display: none !important;
}

.shop-item-card .game-shop-thumb-wrap {
    position: relative;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
}

.shop-item-card .game-shop-img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

.shop-item-card .game-rarity-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
}

.shop-item-card.rarity-common .game-rarity-badge { background: #64748b; }
.shop-item-card.rarity-rare .game-rarity-badge { background: #327B43; }
.shop-item-card.rarity-epic .game-rarity-badge { background: #1F63AC; }
.shop-item-card.rarity-legendary .game-rarity-badge { background: #C60CF5; }

.shop-item-card.rarity-epic { border-color: #e9d5ff; }
.shop-item-card.rarity-legendary { border-color: #fef08a; }

.shop-item-card .game-shop-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #ffffff;
}

.shop-item-card .game-shop-info {
    margin-bottom: 15px;
}

.shop-item-card .game-shop-hp {
    color: #ef4444;
    font-weight: bold;
    font-size: 14px;
    display: block;
}

.shop-item-card .game-shop-price {
    color: #eab308;
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-top: 2px;
}

.game-btn-installed {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: #e2e8f0 !important;
    color: #94a3b8;
    border: none;
    font-weight: bold;
    font-size: 14px;
}

.game-buy-form {
    margin: 0;
}

.game-btn-buy {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: #60d162 !important;
    color: #0f172a;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}
.game-btn-buy:hover {
    background: #eab308 !important;
}

.game-shop-alert-success {
    background: #dcfce7;
    color: #15803d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    border-left: 4px solid #22c55e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: flash 0.5s ease-out;
}

.game-shop-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    border-left: 4px solid #ef4444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: flash 0.5s ease-out;
}

.game-tasks-container {
    background: #767676;
    border-radius: 12px;
    padding: 25px;
    border: 3px solid #000000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.game-quiz-screen-center {
    text-align: center;
    padding: 20px 0;
}

.game-quiz-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.game-quiz-title {
    margin-top: 0;
    font-size: 22px;
    color: #0f172a;
}

.game-quiz-desc {
    font-size: 15px;
    color: #fff;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 25px auto;
}

.game-quiz-start-btn {
    font-size: 16px;
    padding: 14px 35px;
    margin: 0 auto;
    background: #6FC784 !important;
}

.game-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.game-quiz-step-text {
    font-weight: bold;
    font-size: 15px;
    color: #475569;
}

.game-quiz-countdown {
    font-weight: bold;
    background: #fee2e2;
    color: #ef4444;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 75px;
    text-align: center;
}

.game-quiz-countdown.timeout-active {
    background: #fee2e2;
    color: #ef4444;
}

.game-quiz-question {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #0f172a;
    margin-bottom: 20px;
}

.game-quiz-img-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.game-quiz-img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.game-quiz-answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-answer-selection-btn {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: left;
}

.quiz-answer-selection-btn:hover {
    background: #f1f5f9;
    color: #3cdc6e;
}

.quiz-answer-selection-btn.is-answered {
    cursor: not-allowed;
}

.quiz-answer-selection-btn.is-correct {
    background: #22c55e !important;
    color: #fff !important;
    border-color: #22c55e !important;
}

.quiz-answer-selection-btn.is-wrong {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

.game-quiz-footer {
    text-align: right;
    margin-top: 20px;
}

.game-quiz-next-btn {
    font-size: 14px;
    padding: 10px 25px;
}
.game-quiz-next-btn:hover {
    background: #3cdc6e !important;
}

.game-quiz-results-msg {
    font-size: 16px;
    color: #334155;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.game-quiz-return-btn {
    font-size: 15px;
    padding: 12px 30px;
    margin: 0 auto;
    background: #6FC784 !important;
}

.game-tab-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.game-tab-title-sub {
    margin-top: 0;
    margin-bottom: 5px;
    color: #fff;
}

.game-tab-desc {
    font-size: 14px;
    color: #26a51f;
    margin-bottom: 20px;
}

.game-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.rating-table th.col-place { width: 120px; text-align: center; }
.rating-table th.col-hp { width: 200px; text-align: right; }
.rating-table th.col-reward { width: 250px; text-align: right; }
.rating-table td.cell-center { text-align: center; }
.rating-table td.cell-hp-val { text-align: right; font-weight: bold; color: #ef4444; }
.rating-table td.cell-reward-val { text-align: right; font-weight: bold; color: #16a34a; }

.game-user-badge {
    font-size: 11px;
    background: #3b82f6;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.game-reward-item {
    font-size: 12px;
    color: #3b82f6;
    margin-top: 2px;
}

.rarity-common {
    background-image: url(/wp-content/uploads/2026/07/commonbg.png);
    background-size: 100% 100% !important;
    background-position: center;
    background-repeat: no-repeat !important;
}
.rarity-rare {
    background-image: url(/wp-content/uploads/2026/07/rarebg.png);
    background-size: 100% 100% !important;
    background-position: center;
    background-repeat: no-repeat !important;
}
.rarity-epic {
    background-image: url(/wp-content/uploads/2026/07/epicbg.png);
    background-size: 100% 100% !important;
    background-position: center;
    background-repeat: no-repeat !important;
}
.rarity-legendary {
    background-image: url(/wp-content/uploads/2026/07/legendarybg.png);
    background-size: 100% 100% !important;
    background-position: center;
    background-repeat: no-repeat !important;
}


/* =========================================================================
   АДАПТИВНОСТЬ
   ========================================================================= */

@media (max-width: 992px) {
    .game-shop-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
    .game-shop-empty {
        grid-column: span 3;
    }
    
    #daily-bonus-modal .game-bonus-card {
        max-width: 100%; 
        padding: 0px;
    }
}

@media (max-width: 768px) {
    .game-account-page {
        padding: 20px 10px;
    }
.game-topbar-logo {
    justify-content: center;
}   
    .game-account-topbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    .game-account-topbar .game-topbar-item {
        width: 100%;
    }
    .game-account-topbar .game-logout-btn {
        display: inline-block;
        margin-top: 5px;
        width: 100%;
        max-width: 231px;
        box-sizing: border-box;
    }
    .game-tabs-nav {
        justify-content: center;
    }
    
    .game-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .game-shop-empty {
        grid-column: span 2;
    }
    
    .game-quiz-answers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #daily-bonus-modal .game-bonus-title {
        margin-top: 60px; 
        font-size: 24px;
    }
    #daily-bonus-modal .game-bonus-value {
        font-size: 24px;
        padding: 0px 20px;
        margin: 10px 0 15px 0;
    }
    #daily-bonus-modal .game-bonus-icon {
        max-height: 160px;
    }
    #daily-bonus-modal .game-bonus-btn {
        font-size: 24px;
        padding: 16px;
        max-width: 280px;
        margin: 15px auto 25px auto;
    }
}
@media (max-width: 498px) {
.game-topbar-logo {
    max-width: 212px;
}
}

@media (max-width: 480px) {
    .game-shop-grid {
        grid-template-columns: 1fr;
    }
    .game-shop-empty {
        grid-column: span 1;
    }
    
    .game-shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .game-shop-filters button, 
    .game-shop-filters select, 
    .game-shop-filters input {
        width: 100%;
    }

    .game-tabs-nav a, 
    .game-tabs-nav button,
    .game-tour-btn-wrap {
        width: 100%;
    }
    
    .game-tasks-container {
        padding: 15px;
    }
    
    .game-quiz-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 520px) {
.authlogomadi {
    max-width: 280px;
    padding: 0px 20px;
    margin-bottom: 50px !important;
}
.finishline {
    background-size: contain;
    height: 39px;
}
.game-auth-container {
    max-width: 330px;
    margin: 40px auto !important;
}
#game-login-block {
    padding: 36px 40px 104px 40px;
}
.game-auth-container .game-auth-input::placeholder {
    font-size: 14px;
    line-height: 14px;
}
}