/**
 * Additional styles for Shooter demo
 */

/* Wide container */
.content-wrap {
    max-width: none;
}
/* Keep clicked navigation links clean without the browser focus box. */
.navbar-youplay .navbar-nav > li > a:focus,
.navbar-youplay .navbar-nav > li > a:active,
.navbar-youplay .navbar-nav > li > a:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

.navbar-youplay .navbar-nav > li > a {
    -webkit-tap-highlight-color: transparent;
}

.navbar-youplay .navbar-brand:focus,
.navbar-youplay .navbar-brand:active {
    outline: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    -webkit-tap-highlight-color: transparent;
}

/* Use the NewDawn2 artwork as a clean centered loader, without the template ring. */
.preloader-wrapp > img {
    top: 50% !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(75vw, 420px) !important;
    max-width: 75vw !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.preloader-wrapp > .preloader {
    display: none !important;
}

/* Give the registration and account modals enough room for their form fields. */
#nav-registration .modal-dialog.modal-sm,
#change-password .modal-dialog.modal-sm {
    width: 430px;
    max-width: calc(100% - 30px);
}

#nav-registration .modal-body,
#change-password .modal-body {
    padding: 28px 30px 24px;
}

.navbar-login-form > .btn + .btn {
    margin-left: 8px !important;
}

.signup-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 14px;
}

.signup-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    white-space: nowrap;
}


/* Keep stone cards at a compact 80px icon size. */
#download .angled-img .img { width: 80px !important; height: 80px !important; margin: 0 auto; }
#download .angled-img .img > img { width: 80px !important; height: 80px !important; max-width: 80px !important; object-fit: contain; display: block; }


/* Add breathing room around the homepage clan cards. */
#download .youplay-carousel .angled-img { padding: 0 4px; }


/* Wide four-column clan card layout. */
#download .youplay-carousel .angled-img { width: 300px !important; padding: 0 18px; box-sizing: border-box; pointer-events: none; cursor: default; }
#download .youplay-carousel .angled-img .bottom-info { margin-top: 14px; }
#download .youplay-carousel .angled-img .bottom-info h4 { font-size: 20px; line-height: 1.15; }
#download .youplay-carousel .angled-img .bottom-info > div { font-size: 16px; line-height: 1.45; }
@media (max-width: 991px) { #download .youplay-carousel .angled-img { width: 50% !important; } }
@media (max-width: 575px) { #download .youplay-carousel .angled-img { width: 100% !important; } }


/* Registration modal polish. */
#nav-registration .modal-dialog { width: 460px; max-width: calc(100% - 24px); margin: 24px auto; }
#nav-registration .modal-content { background: #111; border: 1px solid rgba(255,255,255,.12); }
#nav-registration .modal-header { padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
#nav-registration .modal-title { font-size: 22px; line-height: 1.2; }
#nav-registration .modal-body { max-height: calc(100vh - 90px); overflow-y: auto; padding: 22px 24px 24px; }
#nav-registration form p { margin: 0 0 7px; font-weight: 600; }
#nav-registration form p small { font-weight: 400; opacity: .7; }
#nav-registration form .youplay-input { margin-bottom: 15px; }
#nav-registration form .youplay-input input { width: 100%; height: 42px; box-sizing: border-box; }
#nav-registration .signup-actions { gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#nav-registration .signup-actions .btn { min-height: 40px; }
@media (max-width: 480px) { #nav-registration .modal-dialog { max-width: calc(100% - 16px); margin: 8px auto; } #nav-registration .modal-body { padding: 18px 16px 20px; } #nav-registration .signup-actions .btn { flex: 1 1 100%; } }


/* Keep the enlarged navbar logo clear of the menu links. */
.navbar-youplay .navbar-brand { margin-right: 36px !important; }
@media (max-width: 767px) { .navbar-youplay .navbar-brand { margin-right: 0 !important; } }


/* Keep the logo contained when the navbar shrinks on scroll. */
.navbar-youplay.navbar-small .navbar-brand { width: 150px !important; height: 50px; margin-right: 24px !important; }
.navbar-youplay.navbar-small .navbar-brand img { max-height: 44px !important; max-width: 190px !important; width: auto !important; height: auto !important; }


/* Slightly taller black navbar while scrolling. */
.navbar-youplay.navbar-small { min-height: 62px !important; }
.navbar-youplay.navbar-small .navbar-brand { height: 62px !important; line-height: 57px !important; }
.navbar-youplay.navbar-small .navbar-nav > li > a { height: 62px !important; padding-top: 21px !important; padding-bottom: 21px !important; }
.navbar-youplay.navbar-small .navbar-brand img { max-height: 50px !important; }


/* Keep login actions together as matching buttons. */
.auth-card .auth-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.auth-card .auth-actions .btn { margin: 0 !important; }
.auth-card .auth-register-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 480px) { .auth-card .auth-actions { flex-wrap: wrap; } .auth-card .auth-actions .btn { flex: 1 1 140px; } }


/* Hide the outdated Popular News footer block. */
.youplay-footer .footer-news-block { display: none !important; }
.battle-banner .image img { object-position: 50% 15% !important; }
