:root {
    --r: 20;
    --g: 65;
    --b: 25;
    --gradBottomBase: rgba(var(--r), var(--g), var(--b), 1.0) 0%, rgba(var(--r), var(--g), var(--b), 0.612) 50%, rgba(255,255,255,0) 100%;
    --gradTopBase: rgba(var(--r), var(--g), var(--b), 0.9) 0%, rgba(255,255,255,0) 50%;
    --grad1: linear-gradient(90deg, rgba(var(--r), var(--g), var(--b), 1) 0%, rgba(var(--r), var(--g), var(--b), 0.812) 35%, rgba(255,255,255,0) 100%);
    --gradDown: linear-gradient(0deg, rgba(var(--r), var(--g), var(--b), 1) 0%, rgba(var(--r), var(--g), var(--b), 0.812) 35%, rgba(255,255,255,0) 100%);
    --gradBottom: linear-gradient(90deg, rgba(var(--r), var(--g), var(--b), 1.0) 0%, rgba(var(--r), var(--g), var(--b), 0.712) 60%, rgba(255,255,255,0) 100%);
    --gradBottomAngle: linear-gradient(150deg, rgba(var(--r), var(--g), var(--b), 1.0) 0%, rgba(var(--r), var(--g), var(--b), 0.712) 60%, rgba(255,255,255,0) 100%);
    --gradTop: linear-gradient(65deg, rgba(var(--r), var(--g), var(--b), 0.9) 0%, rgba(255,255,255,0) 50%);
    --gradDouble: linear-gradient(90deg, rgba(var(--r), var(--g), var(--b), 1) 0%, rgba(var(--r), var(--g), var(--b), 0.6) 15%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(var(--r), var(--g), var(--b), 0.6) 85%, rgba(var(--r), var(--g), var(--b), 1) 100%);
    --gradLight: linear-gradient(135deg, rgba(var(--r), var(--g), var(--b), 0.52) 0%, rgba(var(--r), var(--g), var(--b), 0.28) 57%, rgba(255,255,255,0) 100%);
    --gradFull: linear-gradient(135deg, rgba(var(--r), var(--g), var(--b), 0.72) 0%, rgba(var(--r), var(--g), var(--b), 0.38) 57%, rgba(var(--r), var(--g), var(--b), 0.3) 100%);
    --gradRed: linear-gradient(135deg, rgba(156, 82, 39, 0.9) 0%, rgba(91, 29, 29, 0.9) 31%, rgba(255, 112, 112, 0.9) 100%);
    --gradBlue: linear-gradient(135deg, rgba(30, 62, 156, 0.9) 0%, rgba(29, 29, 91, 0.9) 31%, rgba(112, 112, 255, 0.9) 100%);
    --gradGreenBtn: linear-gradient(135deg, rgba(var(--r), var(--g), var(--b), 0.9) 0%, rgba(var(--r), var(--g), var(--b), 0.6) 57%, rgba(255, 255, 255, 0) 100%);

    --primary: #245734;
    --primaryDark: #112b18;
    --primaryTransparent: rgb(36, 87, 52, 0.85);
    --darkTransparent: rgb(0, 0, 0, 0.4);
}



html * {
    margin: 0;
    font-family: "Lexend", sans-serif;
    box-sizing: border-box
}

.button,
button {
    //box-shadow: 0 0.275rem 1.125rem rgba(0,0,0,.25), inset 0 0.0625rem 0 hsla(0,0%,100%,.2), inset 0 -0.125rem 0 rgba(0,0,0,.3);
    border: none;
}

.home {
    background-color: black;
    width: 100vw;
    box-sizing: border-box;
    height: 100vh;
    height: 100svh; /* Dynamic viewport height for modern browsers */
    display: flex;
    overflow: hidden; /* Prevent unwanted scrolling on iOS */
}



body,
html {
    touch-action: pan-x, pan-y !important;
    background-color: #000000 !important;
}

/* Leaflet map optimizations for sharp rendering */
.leaflet-container {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;

    /* Prevent blurriness on high-DPI screens */
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;

    /* Hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    /* Ensure proper antialiasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.leaflet-tile-container {
    /* Prevent tile interpolation/smoothing */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.leaflet-tile {
    /* Ensure tiles load at full resolution */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;

    /* Prevent blurry tiles */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    /* Hardware acceleration for tiles */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Fix for retina/high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .leaflet-container {
        /* Better handling of high-DPI rendering */
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}


.home__content {
    //position: fixed;
    z-index: 100;
    //left: 50%;
    //height: 100vh;
    //display: flex;
    //flex-direction: column;
    //justify-content: center;
    //align-items: center;
    //height: 100vh;
    //padding: 0 20px;
    //transform: translate(-50%);
    // slowly move to right while fading out when is hidden
    //transition: left 0.5s, opacity 0.5s;
    overflow-y: auto;
    box-sizing: border-box;
}

/// ccar

.home__content.hidden {
    left: 100vw !important;
    display: none !important;
    opacity: 0;
    animation: hide 0.5s ease-in-out forwards;
    pointer-events: none;
}
// we have to do this for ios otherwise back btn makes a blank home page, not sure why
// not even all ios devices some randomly
.cshown {
    //left: 50%;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out forwards;
    pointer-events: all;
    display: flex !important;
}

.home__btns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90vw;
    max-width: 1000px;

    button {
        animation: fadeIn 0.4s ease-in-out forwards;
        opacity: 0;
    }

    gap: 10px;
}

.home__ui {
    /* vertically centered inside home__content */
    //height: 100%;
}




.settingsModal{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.settingsModalInner {
    margin-left: 10px;
    margin-right: 10px;
    width: max-content;
    display: flex;
    flex-direction: row;
}
.settingsModalInner label {
    font-size: min(clamp(1.3em, 3vw, 1.8em), clamp(1.1em, 4vh, 1.6em));
}
.settingsModalInner select, .settingsModalInner input {
    margin-left: 20px;
}
.settingsModalInner.g2_input {
    width: min-content;
}

/* Mobile left spacing for settings options */
@media (max-width: 1024px) {
    .settingsModal {
        align-items: flex-start; /* Align all children to the left */
    }

    .settingsModalInner {
        margin-left: 20px; /* Add 20px left spacing */
        margin-right: 10px;
        width: calc(100% - 30px); /* Adjust width to account for margins */
        justify-content: space-between; /* Spread label and input evenly */
    }

    .settingsModalInner label {
        flex: 1;
        text-align: left;
        white-space: nowrap;
    }

    .settingsModalInner select,
    .settingsModalInner input[type="checkbox"] {
        flex-shrink: 0;
        margin-left: 20px;
    }
}
.g2_modal {
    width: 100vw;
    height: 100vh;
    display: flex !important;
    position: absolute;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

@keyframes nav_slide_in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.banner-text {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.banner-text.shown {
  opacity: 1;
    visibility: visible;
}

.banner-text.hidden {
  opacity: 0;
    visibility: hidden;
}
.g2_card{
    width: 50%;
    height: min-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g2_content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    width: 70vw;
    padding-top: 50px;
}
.g2_content_margin{
    padding-right: 5vw;
    padding-top: 15vh;
}
@keyframes nav_slide_out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}
@keyframes nav_slide_out_right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
.g2_nav_ui {
    padding-top: 50px;
    left: 0px;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 30vw;
    gap: 15px;
    padding-left: 5vw;
    background: linear-gradient(65deg, var(--gradTopBase)),
                linear-gradient(90deg, var(--gradBottomBase));
    transition: opacity 0.3s ease-in-out;
}

.g2_slide_out {
    animation: nav_slide_out 0.3s ease-in-out forwards;
}

.g2_nav_ui > * {
    animation: nav_slide_in 0.3s ease-in-out forwards;
}
.g2_slide_in >* {
    animation: nav_slide_in 0.3s ease-in-out forwards;
}
.slideout_right {
    animation: nav_slide_out_right 0.3s ease-in-out forwards;
}

/* Hide content during navigation transitions to prevent flash */
.home__content.nav-transitioning {
    opacity: 0;
    pointer-events: none;
}

/* Fade out footer during slide-out animation */
.home__content:has(.g2_slide_out) .home__footer {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}



.g2_nav_group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.g2_nav_hr {
    background: white;
    width: 90%;
    max-width: 800px; /* Prevent stretching too wide */
    height: 2.7px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.g2_nav_title {
    //font-family: "Jockey One";
    text-align: left;
}
.g2_flex{
    display: flex;
}
.g2_col{
    flex-direction: column;
}

.g2_nav_squares{
    display: flex;
}
.g2_nav_square{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 15px;
    padding-bottom: 15px;
    justify-content: center;
}

.home__footer.visible {
    transform: translateY(0);
    opacity: 1;
}

.home__footer {
    left: 5vw;
    bottom: 50px;
    position: fixed;
    pointer-events: all;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.footer_btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    max-width: 1000px;
    z-index: 100;
    pointer-events: all;

    button {
        //height: clamp(1.3em, 3vw, 5em);
        //width: clamp(1.3em, 3vw, 5em);
        height: 3vw;
        width: 3vw;
        font-size: max(3vw, 40px);
        min-height: 50px;
        min-width: 50px;

        padding: 10px;
        background-color: var(--primaryTransparent);
        aspect-ratio: 1/1;
        animation: fadeIn 0.4s ease-in-out forwards;
        opacity: 0;
        border: 1.5px solid var(--primaryDark);
    }
}
@media (max-aspect-ratio: 1/1.5) or (max-height: 600px) or (min-aspect-ratio: 3/1) {
    .g2_nav_squares{
        flex-direction: column;
    }
    .g2_content_margin {
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 0;
    }
    .g2_nav_square {
        width: 100%;
        align-items: center;
    }
    .g2_modal {
        flex-direction: column;
    }

    .g2_nav_title {
        padding-top: 0px;
    }

    .g2_nav_hr {
        width: 100%;
        max-width: 200px; /* Prevent stretching too wide on mobile landscape */
    }
    .g2_nav_group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .g2_content {
        overflow-y: visible;
        // width: 100%;
        padding-top: 0px;
    }

    .g2_nav_text {
        width: 100%;
    }

    .g2_nav_ui {
        //flex-direction: row;
        //flex-wrap: wrap;
        padding-top: 70px;
        background: linear-gradient(160deg, var(--gradTopBase)), linear-gradient(180deg, var(--gradBottomBase));
        width: 100%;
        padding-right: 7vw;
        height: auto;
        gap: 5px;
    }
    .map_categories {
        display: none;
    }

    // if height less than 500px
    @media screen and (max-height: 500px) {
        .home__footer {
            bottom: 10px;
            position: static;
            align-items: center !important;
        }
        .footer_btns {
            align-items: center !important;
            justify-content: center !important;
        }
    }

}

#g2_playerCount{
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 1000;
    font-size: 1.4rem;
    font-weight: 500;
}

.g2_nav_text {
    color: white;
    font-size: min(clamp(1.3em, 2.5vw, 4em), clamp(1.1em, 3.5vh, 3.2em));
    background: none;
    font-weight: 400;
    text-align: left;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.5s;
    padding-block: 0;
    padding-inline: 0;
}
.g2_text {
    color: white;
    font-size: min(clamp(1.1em, 1.8vw, 2.3em), clamp(0.9em, 2.5vh, 2em));
    font-weight: 300;
    cursor: pointer;
    transition: all 0.5s;
    text-align: left;
    background: none;
    padding: 0;
    margin: 0;
}
.g2_nav_text.red{
    color: #FFAAAA;
}

.g2_text:hover,
.g2_nav_text:hover {
    color: aqua;
    margin-left: 10px;
}

.g2_center {
    align-items: center;
    justify-content: center;
}






.discord {
    background-color: #738adb !important;
}

.discord:hover {
    background-color: #3e4970 !important;
}

.youtube {
    background-color: #ff000080 !important;
}

.youtube:hover {
    background-color: darkred !important;
}


.home__title {
    font-size: min(clamp(1.8em, 4vw, 13em), clamp(1.5em, 6vh, 8em));
    font-weight: 500;
    color: white;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px black;
    margin-bottom: 0;
}

.home__subtitle {
    font-size: min(clamp(1.2em, 1.8vw, 1.5em), clamp(1em, 2.5vh, 1.3em));
    font-weight: 500;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px black;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.accountBtnContainer {
    transition: all 0.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

@keyframes hide {
    0% {
    }

    100% {
        display: none;
    }
}

.home__squarebtns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


.home__squarebtnicon {
    // transform: translateY(15%);
    // padding-left: 10px;
}

.home__squarebtn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    //border: solid 1.4px var(--primary);
}

// @for $i from 1 through 6 {
//   .home__btns button:nth-child(#{$i}n) {
//       animation-delay: #{$i * 0.1}s;
//   }
// }

/* media query if height larger than width */
@media (max-aspect-ratio: 1/1) {

    .home__content {
        //left: 50%;
    }
}

// if width 2x height
// @media (min-aspect-ratio: 2/1) {
//   .home__content {
//     justify-content: flex-start !important;
//   }
// }


.home__singleplayer {
    z-index: 101;
}

.gameBtn {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    font-size: min(clamp(1.3em, 3vw, 5em), clamp(1.1em, 4vh, 3.5em));
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    //box-shadow: 0px 3px 4px 0px rgb(0 0 0 / 35%);
    //-webkit-text-stroke: 1px black;
    //text-shadow: 2px 2px black;
    border-radius: 15px;
}

.gameBtn:hover {
    background-color: var(--primaryTransparent);
}
// disabled gamebtn
.gameBtn[disabled] {
    background-color: rgba(40, 40, 40, 0.3);
    cursor: not-allowed;
}

.homeBtn {
    padding: 10px;
    border-radius: 5px;
    background-color: #444;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.5em;
    background-color: #327A60;
    display: block;
    width: 100%;
    white-space: nowrap;
    text-shadow: 2px 2px black;
    box-shadow: 10px 3px 4px 0px rgb(0 0 0 / 35%);
    height: 100%;
}

.homeBtn.singleplayer {
    background-color: #547a32;
}
// mobile homebtn has smaller font size and is less bold
@media screen and (max-width: 600px) {
    .homeBtn {
        font-size: 1.2em;
        font-weight: 200;
    }
}
// disabled homebtn
.homeBtn[disabled] {
    background-color: #373737;
    cursor: not-allowed;
}

.homeBtn:hover {
    background-color: #225541;
}

.homeBtn.singleplayer:hover {
    background-color: #485522;
}

.accountBtn {
    position: fixed;
    right: 50px;
    top: 50px;
    width: auto;
    z-index: 101;
    font-size: 1.5em;
    border-radius: 8px;
    pointer-events: all;
    background-color: var(--primaryTransparent);
}

.accountBtn.loggedIn {
    top: 10px;
    right: 70px;
}

.friendBtn {
    background: var(--primaryTransparent);
    width: fit-content;
    display: flex;
    color: white;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    aspect-ratio: 1/1;
    height: 42px;
}

.friendBtn:hover {
    background: var(--primary);
}

.friendBtnFixed {
    position: fixed;
    top: 10px;
    right: 10px;
    aspect-ratio: inherit;

}
.friendBtnIcon {
        width: 40px;
        height: 40px;
    }
//less than 1280px
@media screen and (max-width: 1280px) {
    .accountBtn {
        font-size: 1.2em;
    }
    .accountBtn.loggedIn {
        right: 62px;
    }
    .friendBtn.friendBtnFixed {
        height: 36px;
    }
    .friendBtnIcon.friendBtnIconFixed {
        width: 35px;
        height: 35px;
    }
}
//less than 600px
@media screen and (max-width: 600px) {
.accountBtn {
        font-size: 1.0em;
        top: 10px;
        right: 20px;
    }
    .accountBtn.loggedIn {
        right: 58px;
    }
    .friendBtn.friendBtnFixed {
        height: 30px;
    }
    .friendBtnIcon.friendBtnIconFixed {
        width: 30px;
        height: 30px;
    }
}

.accountBtn:hover {
    background-color: var(--primary);
}

// Green styling for account button during onboarding
.navbar.onboarding .accountBtn:not(.backBtn),
.navbar.onboarding .navBtn:not(.backBtn) {
    border: 1.4px solid var(--primaryDark);
    background: var(--gradGreenBtn);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.navbar.onboarding .accountBtn:not(.backBtn):hover,
.navbar.onboarding .navBtn:not(.backBtn):hover {
    background-color: var(--primary);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.navBtn {
    font-size: 1.0em;
    width: auto;
    pointer-events: all;
    border-radius: 50px;
    padding-left: 10px;
    padding-right: 10px;
}

@media screen and (max-width: 600px) {
    .navBtn {
        font-size: 1.2em;
    }
}

.g2_lexend {
    font-family: lexend;
}



.g2_green_button {
    border: 1.4px solid var(--primaryDark);
    background: var(--gradGreenBtn);
    color: white;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.g2_green_button3 {
    border: 1.4px solid var(--primaryDark);
    background-color: var(--primaryTransparent);
    color: white;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.g2_green_button2 {
    border: 1.4px solid var(--primaryDark);
    filter: brightness(1.8) hue-rotate(-20deg);
    background: var(--gradLight);
    color: white;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}
.g2_green_button3:hover{
    background-color: var(--primary);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);

}
.g2_green_button:hover {
    background-color: var(--primary);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}
.g2_green_button2:hover {
    background-color: var(--primary);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Fix for game options button overflow in navbar */
.gameBtn.navBtn.g2_green_button.g2_lexend {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gameBtn.navBtn.g2_green_button.g2_lexend svg {
    flex-shrink: 0; /* Prevent the pencil icon from shrinking */
}

@media screen and (max-width: 600px) {
    .gameBtn.navBtn.g2_green_button.g2_lexend {
        max-width: 200px; /* Smaller max-width on mobile */
    }
}

.g2_red_button {
    border: 1.4px solid #85200c;
    background: var(--gradRed);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s;
}
.g2_hover_effect {
    transition: all 0.5s;
}
.g2_hover_effect:hover{
    background: var(--primary);
}
.g2_red_button:hover {
    background-color: #49170d;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}


.g2_blue_button {
    border: 1.4px solid #004684;
    background: var(--gradBlue);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.g2_blue_button:hover {
    background-color: #0b5394;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}
.g2_button_style {
    padding: 10px;
    border-radius: 16px;
}

.g2_shadow {
    filter: drop-shadow(0px 6px 7px rgba(0, 0, 0, 0.3));
}


.g2_input {
    border-radius: 8px;
    border: 1.4px solid var(--primaryDark);
    background: white;
    color: black;
}

.g2_green_dark_button {
    border: 1.4px solid var(--primaryDark);
    background: var(--gradLight);
}

.g2_container {
    background: var(--gradLight);
    backdrop-filter: blur(10px);
    filter: drop-shadow(0px 6px 7px rgba(0, 0, 0, 0.3));
}

.g2_container_harsh {
    background: var(--gradBottomAngle) !important;
    backdrop-filter: blur(10px);
    filter: drop-shadow(0px 6px 7px rgba(0, 0, 0, 0.3));
    background-color: rgba(0, 0, 0, 0.25) !important;
}

/* Mobile responsive party modal */
@media (max-width: 768px) {
    .party-modal-responsive {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 15px !important;
        margin: 0 auto !important;
    }
}

.g2_container_light {
    background: var(--gradLight);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    filter: drop-shadow(0px 6px 7px rgba(0, 0, 0, 0.3));
}

.g2_container_style {
    border-radius: 20px;
    padding: 15px;
}

.g2_container_full {
    background: var(--gradFull);
    backdrop-filter: blur(10px);
    filter: drop-shadow(0px 6px 7px rgba(0, 0, 0, 0.3));
}

.g2_container_dark {
    background: var(--gradLight) !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px);
    filter: drop-shadow(0px 6px 7px rgba(0, 0, 0, 0.3));
}

.backBtn {
    //background-color: #AE4141;
    // width: 100px;
    font-family: lexend;
    margin-left: 10px;
    pointer-events: all;
}

.backBtn:hover {
    background-color: darkred;
}

.reloadBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border: 2px solid rgba(29, 29, 91, 0.8);
    background: var(--gradBlue);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 50%;
    font-weight: 600;
}

.reloadBtn:hover {
    background-color: rgba(30, 62, 156, 1);
}

h1, h2, h3, span, label {
    font-weight: 500;
    color: white;
}

.historyContainer h3,
.historyContainer span {
    color: white !important;
    font-family: lexend;
}



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    // height: 83px;
    display: flex;
    align-items: center;
    // background-color: #0d0d32;
    // backdrop-filter: blur(10px);
    z-index: 1120;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
    pointer-events: none;
    // enter from top

    transition: all 0.5s;
    height: 50px;
}
// .navbarColor {
//     background: var(--primaryTransparent);
// }

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}


.navbar__title {
    // font-size: 2.5em;
    font-weight: 500;
    color: white;
    user-select: none;
    cursor: pointer;
    transition: all 250ms ease;
    font-size: 1.8em;
    font-family: "Jockey One" !important;
    // text border
    -webkit-text-stroke: 1px black;
}
.wg_font {
    font-family: "Jockey One" !important;
}


.navbar__title:hover {
    transition: all 250ms ease;
    transform: scale(1.1);
}

.navbar__title:active {
    transition: all 250ms ease;
    transform: scale(0.8);
}

.nonHome {
    display: none;
    opacity: 0;
}

.nonHome.shown {
    display: flex;
    animation: fadeInNonHome 0.5s ease-in-out forwards;
    pointer-events: all;
}

@keyframes fadeInNonHome {
    0% {
        opacity: 0;
        //transform: scale(0)
    }

    100% {
        opacity: 1;
        //transform: scale(1)
    }
}


.navbar__right {
    margin-left: auto;
    display: flex;
    gap: 10px;
    height: 80%;
}

.timer {
    font-family: lexend;
    font-weight: 600;
    z-index: 102;
    position: fixed;
    top: 50px;
    right: 0;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    background: var(--gradLight);
    background-color: var(--primaryTransparent);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    color: white;
    user-select: none;
    pointer-events: none;
    width: max-content;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(36, 87, 52, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-right: 20px;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer.shown {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.timer.duel {
    right: 50%;
    transform: translateX(50%);
    margin-right: 0;
    top: 100px;
}

// Timer positioning for mobile to avoid overlap with health bars
@media screen and (max-width: 830px) {


    /* Make health bars more compact on mobile */
    .player-info-modern {
        margin-top: 6px; /* Reduced from 12px */
    }

    .health-bar-container.modern {
        margin: 10px; /* Reduced overall container margin */
    }
}

@media screen and (max-width: 830px) {
    .timer.duel {
        font-size: 18px; /* Slightly smaller font */
        padding: 8px 16px; /* Reduced padding */
        top: 40px;
    }
}
@media screen and (max-width: 600px) {
    .timer.duel {
        font-size: 14px;
    }
}

@media screen and (max-width: 540px) {
    .timer.duel {
        top: 110px;
        font-size: 14px;
    }
}



// Critical timer states for under 5 seconds - softer red
.timer.critical {
    background: linear-gradient(135deg, rgba(220, 100, 100, 0.9) 0%, rgba(200, 80, 80, 0.9) 100%);
    border-color: rgba(255, 200, 200, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(220, 100, 100, 0.4),
        0 0 25px rgba(220, 100, 100, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: timerPulse 1s ease-in-out infinite;
    transform: translateY(0) scale(1.05);
}

.timer.duel.critical {
    transform: translateX(50%) scale(1.05);
}

// Screen edge warning effect - disabled for performance
// body:has(.timer.critical)::before {
//     content: '';
//     position: fixed;
//     top: 0;
//     left: 0;
//     right: 0;
//     bottom: 0;
//     pointer-events: none;
//     z-index: 999;
//     animation: screenPulse 1s ease-in-out infinite;
//     border: 8px solid transparent;
// }

@keyframes timerPulse {
    0% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 4px 20px rgba(220, 100, 100, 0.4),
            0 0 25px rgba(220, 100, 100, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        filter: brightness(1);
    }
    50% {
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.5),
            0 6px 30px rgba(220, 100, 100, 0.6),
            0 0 40px rgba(220, 100, 100, 0.5),
            0 0 60px rgba(220, 100, 100, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        filter: brightness(1.1);
    }
    100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 4px 20px rgba(220, 100, 100, 0.4),
            0 0 25px rgba(220, 100, 100, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        filter: brightness(1);
    }
}

// @keyframes screenPulse {
//     0% {
//         border-color: rgba(200, 80, 80, 0);
//         box-shadow:
//             inset 0 0 0 rgba(200, 80, 80, 0),
//             inset 30px 0 100px rgba(200, 80, 80, 0),
//             inset -30px 0 100px rgba(200, 80, 80, 0),
//             inset 0 30px 100px rgba(200, 80, 80, 0),
//             inset 0 -30px 100px rgba(200, 80, 80, 0);
//     }
//     50% {
//         border-color: rgba(200, 80, 80, 0.6);
//         box-shadow:
//             inset 0 0 120px rgba(200, 80, 80, 0.1),
//             inset 30px 0 100px rgba(200, 80, 80, 0.25),
//             inset -30px 0 100px rgba(200, 80, 80, 0.25),
//             inset 0 30px 100px rgba(200, 80, 80, 0.25),
//             inset 0 -30px 100px rgba(200, 80, 80, 0.25);
//     }
//     100% {
//         border-color: rgba(200, 80, 80, 0);
//         box-shadow:
//             inset 0 0 0 rgba(200, 80, 80, 0),
//             inset 30px 0 100px rgba(200, 80, 80, 0),
//             inset -30px 0 100px rgba(200, 80, 80, 0),
//             inset 0 30px 100px rgba(200, 80, 80, 0),
//             inset 0 -30px 100px rgba(200, 80, 80, 0);
//     }
// }

// Fallback for browsers that don't support :has() - disabled for performance
// .screen-critical-warning {
//     position: fixed;
//     top: 0;
//     left: 0;
//     right: 0;
//     bottom: 0;
//     pointer-events: none;
//     z-index: 999;
//     animation: screenPulse 1s ease-in-out infinite;
//     border: 8px solid transparent;
// }

// Animated Counter Styles
.animated-counter {
    position: relative;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.animated-counter.animating .counter-value {
    color: #22c55e;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
    animation: counterGlow 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.increment-indicator {
    position: absolute;
    left: 100%;
    top: -50%;
    margin-left: 8px;
    font-weight: 700;
    font-size: 0.9em;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes pointIncrement {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translateY(-8px) scale(1.1);
    }
    50% {
        opacity: 1;
        transform: translateY(-16px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-32px) scale(0.9);
    }
}

@keyframes counterGlow {
    0% {
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
    30% {
        color: #22c55e;
        text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
        transform: scale(1.05);
    }
    100% {
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
}

// Enhanced styling for round over screen point animations
.points-display.animating {
    color: #22c55e !important;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    animation: pointsGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pointsGlow {
    0% {
        color: #22c55e;
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
        transform: scale(1);
    }
    50% {
        color: #16a34a;
        text-shadow: 0 0 25px rgba(34, 197, 94, 0.8);
        transform: scale(1.08);
    }
    100% {
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
}



// .top {
//   width: 100%;
//   height: 83px;
//   position: absolute;
//   z-index: 14;
//   top: 0px;
//   left: 0;
//   display: flex;
//   justify-content: space-between;
//   align-items: top;
//   user-select: none;
// }

// button {
//   user-select: none;
// }

// #timerDiv {
//   display: fixed;
//   position: absolute;
//   top: 10px;
//   right: 50%;
//   transform: translateX(50%);
//   padding: 10px;
//   z-index: 100;
//   background-color: rgba(42, 44, 71, 0.9);
//   backdrop-filter: blur(10px);
//   color: white;
//   font-size: 1.5em;
//   font-weight: 500;
//   border:  1px solid #555;
//   border-radius: 10px;
//   user-select: none;
// }

//  /*  on pc */
// @media screen and (min-width: 600px) {
//   #timerDiv {
//     top: 80px;
//   }

// }


// #leaderBoard {
//   width: 25vw;
//   height: calc(100vh - 83px);
//   position: fixed;
//   left: 0;
//   bottom: 0;
//   background-color: rgba(42, 44, 71, 0.9);
//   backdrop-filter: blur(10px);
//   text-align: center;
//   overflow-y: auto;
// }

// @media screen and (max-width: 600px) {
//   #leaderBoard {
//     display: none;
//   }
//   #leaderBoard.mobileOpen {
//     display: block;
//     width: 100vw;
//     height: calc(100vh - 83px - 90px);
//     bottom: 90px;
//     z-index: 100;
//   }
// }

// #leaderBoard h1 {
//   font-size: 1.5em;
//   font-weight: 500;
//   padding: 10px;
//   color: white;
// }

// #leaderBoard h2 {
//   font-size: 1.2em;
//   font-weight: 500;
//   padding: 10px;
//   color: white;
// }

// #leaderBoard ul {
//   list-style-type: none;
//   padding: 0;
//   margin-top: 10px;
// }

// #leaderBoard li {
//   margin: 10px;
//   padding: 10px;
//   border: 1px solid rgba(255, 255, 255, 0.5);
//   background-color: rgba(255, 255, 255, 0.1);
//   color: white;
//   cursor: pointer;
//   transition: transform 0.2s ease-in-out;
// }

// #leaderBoard.gameEnded {
//   width: 100vw;
// }



// .topItem {
//   backdrop-filter: blur(10px);
//   background-color: rgba(42, 44, 71, 0.9);
//   -webkit-backdrop-filter: blur(10px);
//   height: 75px;
//   user-select: none;
// }

// #logo img {
//   height: 40px;
//   width: auto;
// }

// .navButton, .iconButton {
//   background-color: #555;
//   color: white;
//   border: none;
//   padding: 10px 20px;
//   margin-left: 10px;
//   border-radius: 5px;
//   cursor: pointer;
//   transition: background-color 0.3s;
// }

// .navButton:hover, .iconButton:hover {
//   background-color: #777;
// }

// .iconButton {
//   display: flex;
//   align-items: center;
//   justify-content: center;
//   font-size: 20px;
// }

// #icon {
//   margin-top: 6px;
//   margin-left: 10px;
//   width: 18em;
//   transition: all 250ms ease;
// }

// #icon:hover {
//   transition: all 250ms ease;
//   transform: scale(1.1);
// }

// #icon:active {
//   transition: all 250ms ease;
//   transform: scale(0.8);
// }

// #innerMainDiv {
//   width: 100%;
//   height: 100%;
//   display: flex;
//   align-items: flex-end;
//   flex-direction: row-reverse;


//   background-color: rgba(15, 16, 22, 0.9);

// }

// @media screen and (max-width: 600px) {
//   #innerMainDiv {
//     flex-direction: column;
//   }

// }

// #mapControls {
//   /* display: flex;
//   justify-content: space-between;
//   width: 100%;
//   padding: 10px;
//   margin-bottom: 10px; */
//   user-select: none;
// }

// img {
//   user-select: none;
// }


#miniMapArea {
    width: 25%;
    height: 35%;
    max-height: 100%;
    z-index: 10;
    border-radius: 10px;
    position: absolute;
    right: 10px;
    display: flex;
    flex-flow: column;
    bottom: 10px;
    margin-top: auto;
    margin-left: auto;
    margin-right: 0px;
    z-index: 1000;
    transform: translateY(105%);
    opacity: 0;
}

.gm-bundled-control-on-bottom {
    right: auto !important;
    left: 0 !important;
}
// obnly on ios
@supports (-webkit-touch-callout: none) {
    .gm-bundled-control-on-bottom {
        transform: translateY(-100px) !important;
    }
}

.gm-style-cc {
    display: none;
}
// less than 460px
// @media screen and (max-width: 460px) {
//   .gm-bundled-control-on-bottom {
//     bottom: calc(161px + 100px) !important;
//   }


// }



#miniMapArea.shown {
    opacity: 50%;
    transform: translateY(0%);
}


#miniMapContent {
    cursor: crosshair;
    height: 100%;
    background-color: #B9D3DC;
    position: relative;
}

#miniMapArea.answerNotShown {
    transition: all 250ms ease;
}

#miniMapArea.answerNotShown #miniMapContent {
    border: 5px solid #0F251D;
    border-radius: 10px;
}

#miniMapArea.answerShown .ol-zoom {
    display: none;
}

#miniMapArea.answerShown .leaflet-control-zoom {
    display: none;
}

.mapCornerBtns {
    position: relative;
}

@media screen and (max-width: 600px), screen and (pointer:coarse) {
    #miniMapArea {
        transform: translateY(100%);
        opacity: 0;
    }

    #miniMapArea.miniMap.shown {
        bottom: 0;
        right: 0;
        opacity: 100%;
        transform: translateY(0%);
        margin-right: 0;
        width: 100%;
    }

    #miniMapArea.miniMap.shown .chatboxBtn {
        transform: translate(0, 0) !important;
    }
    // #miniMapArea.answerShown {
    //   transform: none;
    // }
    #miniMapContent {
        border: none;
    }
}

.miniMap__btns {
    height: 10%;
    min-height: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--primaryTransparent);
}

.miniMap__btn {
    font-family: lexend;
    height: 100%;
    width: 100%;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid var(--primary);
    // box-shadow: 10px 3px 4px 0px rgb(0 0 0 / 35%);
    // background-image: radial-gradient(150% 160% at 50% 15%,hsla(0,0%,100%,.6) 0,transparent 30%);
}
.g2_mobile_guess{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--primaryDark);
    background: var(--gradLight);
}

.mobile_minimap__btns {
    display: none;
}

@media screen and (max-width: 600px), screen and (pointer:coarse) {
    .miniMap__btns {
        display: none;
    }

    .mobile_minimap__btns {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        position: absolute;
        border-radius: 10px;
        right: 15px;
        bottom: 30px;
        animation: fadeIn 1s ease-in-out forwards;
    }


    .mobile_minimap__btns.miniMapShown {
        bottom: calc(70% + 5px);
        width: 100%;
        right: 0;
    }

    .mobileMiniMapExpandedToggle {
        width: 20%;
    }
}
// @media screen and (max-width: 460px) {
//   .mobile_minimap__btns {
//     bottom: calc(20px + 50px);
//   }

// }

.chatboxBtn {
    transform: translate(60px, 5px);
}

@media screen and (max-width: 600px), screen and (pointer:coarse) {
    .chatboxBtn.minimap {
        transform: translate(5px, 0px);
    }
}

// @media screen and (max-width: 580px) {
//   .chatboxBtn {
//     transform: translate(60px, -45px);
//   }

// }
.chatboxBtn.open {
    transform: translate(0, 0);
}



.answerShownBtns {
    display: none;
}

.guessBtn {
    background-color: rgba(0, 0, 200, 0.85);
    border-radius: 8px;
}

.cornerBtn {
    font-size: 1.5em;
    background-color: #1ea0ac;
    color: white;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
}

.hintBtn {
    width: 25%;
    background-color: var(--primaryTransparent);
    transition: all 250ms ease;
    border-radius: 8px;
}

.hintBtn.hintShown {
    display: none;
}

.ol-viewport {
    border-radius: 10px;
}

.miniMap__btn.unavailable {
    background-color: var(--darkTransparent);
    cursor: not-allowed;
}

.streetview,
#streetview {
    user-select: none;
    border: none !important;
    transition: all 100ms ease;
    width: 100vw;
    height: calc(100vh - 5px);
    box-sizing: border-box;
    border: 3px;
    box-sizing: border-box;
    opacity: 1;
    transition: all 0.5s;
    position: fixed !important;
}

#googlemaps.hidden,
#streetview.hidden {
    // transform: translateY(-105%);
    opacity: 0;
}

// on screens larger than 600px
@media screen and (min-width: 600px) and (pointer: fine) {
    #miniMapArea.mapExpanded {
        /* full screen center not 100% */
        height: 65%;
        width: 55%;
    }

    #miniMapArea.fullscreen {
        height: 80%;
        width: 75%;
    }
}

// if less than 600px or touch screen
@media screen and (max-width: 600px), screen and (pointer:coarse) {
    #miniMapArea {
        /* full screen center not 100% */
        height: 70%;
        width: 55%;
    }
}



#miniMapArea.answerShown {
    width: 100%;
    box-sizing: border-box;
    height: 100vh;
    opacity: 100%;
    right: 0;
    top: 0px;
    margin-right: 0;
    margin-top: 0;
    transition: all 1000ms ease;
}



#miniMapArea.gameOver {
    /* full screen center not 100% */
    height: 100%;
    width: 100%;
    margin-right: 0;
    opacity: 100%;
    bottom: 0;
}

#miniMapArea.gameOver.multiplayer {
    width: 75vw;
}


// gameoption modal
.countriesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    // padding: 20px;
    overflow-y: scroll;
    // max-height: 50vh;
    // height: 50vh;
    // green scrollbar
    // overflow: hidden;
}

.countryCard {
    flex: 1 0 20%; /* This will make each card take up approximately 1/3 of the container's width */
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    margin: 10px;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0px 10px 29px 0px rgba(0, 0, 0, 0.22);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.nmpz {
    pointer-events: none;
}

.countryCardHeader {
    width: 100%;
    flex: 1 0 75%;
    max-width: 75%;
}

.countryCard:hover {
    transform: scale(1.05);
}

.countryName {
    color: black;
    background-color: white;
    border: 1px solid black;
    padding: 5px;
    font-size: 1.2em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#endBanner {
    min-height: 150px;
    background: var(--gradLight);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 50%;
    padding: 20px;
    margin-bottom: 10px;
    z-index: 1001;
    pointer-events: all;
}


.topGameInfoButton {
    align-self: flex-end;
    transform: translate(10px, -10px);
    background: none;
    border: none;
    color: white;
    transition: color 0.5s, background 0.5s;
    border-radius: 5px;
}
.topGameInfoButton:hover{
    color: #BBBBFF;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.endCards {
    pointer-events: none;
    display: flex;
    position: fixed;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    bottom: 0;
    z-index: 100;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    font-family: lexend;
}

@media screen and (max-width: 600px) {
    .endCards {
        flex-direction: column;
        gap: 2px;
    }
}

.bannerContent {
    font-size: min(clamp(1.6em, 2.5vw, 1.8em), clamp(1.4em, 3vh, 1.7em));
    text-align: center;
    font-family: lexend;
    display: flex;
    gap: 5px;
    flex-direction: column;
}



.endButtonContainer {
    display: flex;
    justify-content: space-around; /* Adjusts spacing between buttons */
    align-items: center; /* Vertically centers buttons in the container */

    button {
        font-family: lexend;
        font-size: 1em;
        padding: 10px 20px;
        margin: 5px;
        background-color: var(--primaryTransparent);
        border: 2px solid var(--primary);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    button:hover {
        background-color: #666;
    }
}

.mainBannerTxt {
    font-size: 1.2em;
    font-weight: 500;
    padding: 0px;
}

.smallmainBannerTxt {
    font-size: 1em;
    font-weight: 500;
    padding: 0px;
}


.motivation {
    font-size: 0.8em;
    padding: 0px;
}

@media screen and (max-width: 600px) {


    .motivation {
        font-size: 0.6em;
    }

    .mainBannerTxt {
        font-size: 0.8em;
    }

    .smallmainBannerTxt {
        font-size: 0.6em;
    }

    @media screen and (max-height: 840px) {
        .mainBannerTxt {
            font-size: 0.7em;
        }

        .smallmainBannerTxt {
            font-size: 0.6em;
        }

        .motivation {
            font-size: 0.5em;
        }
    }
}

#miniMapArea:hover {
    transition: all 250ms ease;
    opacity: 100%;
}


#mapControlsAbove {
    position: absolute;
    transform: translateY(-75px) translateX(-15px);
    width: 100%;
}


.multiplayerHome {
    height: calc(100vh);
    box-sizing: border-box;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: fixed;
    bottom: 0;
    z-index: 101;
    pointer-events: all;
    //animation: fadeIn 1s ease-in-out forwards;
}

.multiplayerHome.inGame {
    pointer-events: none;
}

.multiplayerFinalBtns {
    pointer-events: all;
}

.multiplayerOptionBtn {
    padding-left: 20px;
    padding-right: 20px;
}

// Join Party Screen Styles
.join-party-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    pointer-events: all;
    box-sizing: border-box;
}

.join-party-card {
    background: var(--gradLight);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: clamp(30px, 5vw, 50px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 480px;
    min-width: 320px;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.join-party-title {
    color: white;
    font-size: min(clamp(1.8rem, 4vw, 2.5rem), clamp(1.5rem, 5vh, 2.2rem));
    font-weight: 600;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.join-party-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.join-party-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;

    @media (min-width: 520px) {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
}

.join-party-input {
    flex: 1;
    padding: 16px 20px;
    font-size: min(clamp(1rem, 2.5vw, 1.2rem), clamp(0.9rem, 3vh, 1.1rem));
    border: 2px solid var(--primaryDark);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    &::placeholder {
        color: #999;
        font-weight: 400;
        letter-spacing: normal;
    }

    &:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
        transform: translateY(-1px);
    }
}

.join-party-button {
    padding: 16px 24px;
    font-size: min(clamp(1rem, 2.5vw, 1.2rem), clamp(0.9rem, 3vh, 1.1rem));
    font-weight: 600;
    border: 2px solid var(--primaryDark);
    border-radius: 12px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 100px;
    flex-shrink: 0;

    &:hover:not(:disabled) {
        background: var(--primaryDark);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    &:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    &:active:not(:disabled) {
        transform: translateY(-1px);
    }
}

.join-party-error {
    color: #ff4757;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    text-shadow: none;
    animation: errorSlideIn 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.publicGame {
    background-color: #7a3232;
}

.publicGame:hover {
    background-color: #542626;
}

.unrankedGame {
    background-color: #327a32;
}

.unrankedGame:hover {
    background-color: #265226;
}

// chatbox
.chatboxParent {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Default bottom-left position */
    opacity: 0;
    transition: all 0.5s;
    border-radius: 10px;
    transform: translateY(100%);
    z-index: 2000;
}

/* Move chat to bottom-right when round over screen is shown */
.chatboxParent.roundOverScreen {
    left: auto;
    right: 20px;
}

/* Adjust chat button positioning when on right side */
.chatboxParent.roundOverScreen .chatboxBtn {
    transform: translate(0px, 5px); /* Mirror the original transform */
}
.chatboxParent.roundOverScreen .chatboxBtn.open {
    transform: translate(0,0); /* Mirror the original transform */
}


.chatbox {
    display: none;
}

.chatbox.open {
    display: block;
}

.chatboxParent.enabled {
    opacity: 0.8;
    transform: translateY(0%);
}

.chatboxParent.enabled:hover {
    opacity: 1;
}

.react-chatbot-kit-chat-header {
    display: none !important;
}

.react-chatbot-kit-chat-inner-container {
    background-color: rgba(0,0,0,0) !important;
}

.react-chatbot-kit-chat-message-container {
    overflow: hidden !important;
    overflow-y: auto !important;
    border: 5px solid #0F251D;
    background-color: #B9D3DC;
    border-radius: 10px;
    height: calc(100% - 65px);
}

input[placeholder="Please login to chat"] {
    // disable the div
    cursor: not-allowed;
    pointer-events: none;
    background-color: rgba(225, 225, 225, 1) !important;
}


.react-chatbot-kit-chat-input-container {
    border-radius: 10px;
}

.react-chatbot-kit-chat-input {
    font-size: 16px !important;
}

.react-chatbot-kit-user-chat-message,
.react-chatbot-kit-chat-bot-message {
    // make it look like a chat bubble overflow on new linw wrap
    display: inline-block;
    word-wrap: break-word;
    max-width: 60%;
    padding: 10px;
}

.react-chatbot-kit-chat-bot-message {
    margin-left: 0 !important;
}

@media screen and (max-height: 6000px) {

    .react-chatbot-kit-chat-message-container {
        height: 448px !important;
    }

    .react-chatbot-kit-chat-inner-container {
        height: 496px !important;
    }
}

@media screen and (max-height: 600px) {

    .react-chatbot-kit-chat-message-container {
        height: 244px !important;
    }

    .react-chatbot-kit-chat-inner-container {
        height: 292px !important;
    }
}

.authorName {
    color: blue;
}

@keyframes fadeInLb {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.8;
    }
}

.multiplayerLeaderboard {
    background-color: #062413;
    border-radius: 10px;
    position: fixed;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    transition: all 0.5s;
    animation: fadeInLb 1s ease-in-out forwards;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    overflow-y: auto;
    padding-top: 50px;
}



.multiplayerLeaderboard__player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #fff;
    width: 40%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.multiplayerLeaderboard__player.me {
    background-color: #d4edda;
}

.multiplayerLeaderboard__player__username {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

.multiplayerLeaderboard__player__score {
    font-size: 14px;
    color: #000000;
}

.multiplayerLeaderboard__separator {
    font-size: 20px;
    color: #ffffff;
    margin: 10px 0;
}

@media screen and (min-width: 600px) {
    .desktop {
        display: block;
    }

    .mobile {
        display: none;
    }
}

@media screen and (max-width: 600px), screen and (pointer:coarse) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    .home__footer {
        // center it
        bottom: 10px;
        left: calc(50% - 150px);
    }
}


.gameCodeInput {
    background-color: white;
    font-size: clamp(1em, 2vw, 3em);
}

.goBtn {
}

.inverted {
    -webkit-filter: invert(100%);
    -moz-filter: invert(100%);
    -o-filter: invert(100%);
    -ms-filter: invert(100%);
}

.gm-control-active[title="Zoom in"],
.gm-control-active[title="Zoom out"] {
    -webkit-filter: invert(100%);
    -moz-filter: invert(100%);
    -o-filter: invert(100%);
    -ms-filter: invert(100%);
}

.gm-compass {
    transform: translateY(50%);
}

.streetview.nmpz .gm-compass {
    transform: translateY(-20px);
}

#playerCnt {
    font-size: 1.5em;
    margin-top: 5px;
}

img[alt="Google"] {
    display: none;
}

.bigSpan {
    font-size: 1em;
    transition: all 250ms ease;
}

.onlineText {
    position: fixed;
    transition: all 0.5s;
    opacity: 1;
    transform: translateX(0px);
}

// .onlineText.notHome {
//     transform: translateX(210px);
// }

.onlineText.hide {
    transform: translateX(210px);
}

.onlineText.notHome.hide {
    transform: translateX(210px);
}

.wiki {
    left: 0;
    top: 0;
    color: white;
}

.play {
    width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
    // italic
}

.countryGuessrOptions {
    position: fixed;
    z-index: 1000;
    display: none;
    flex-direction: row;
    bottom: 50px;
    left: 50%;
    width: 60%;
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
}

.countryGuessrOptions.shown {
    display: flex;
    animation: fadeIn 1s ease-in-out forwards;
    transform: translateY(0%) translateX(-50%);
    opacity: 1;
}

.countryGuessrCard {
    background-color: #0F251D;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #0a0c0b;
    border-radius: 10px;
}

.onboardingDiv {
    position: fixed;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    top: 50px;
    background-color: rgb(16, 27, 17);
    color: white;
    padding-left: 50px;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-right: 50px;
    font-size: 1.5em;
    border-radius: 10px;
    width: 40%;
    height: auto;
    min-height: 40px;
    // hidden
    opacity: 0;
}

.onboardingDiv.shown {
    animation: fadeIn 1s ease-in-out forwards;
    transform: translateY(0%) translateX(-50%);
    opacity: 1;
}

@media screen and (max-width: 600px), screen and (pointer:coarse) {
    .countryGuessrOptions {
        bottom: 0;
        width: 100%;
    }

    .countryGuessrCard {
        width: 100%;
        height: 100px;
    }

    .onboardingDiv {
        width: 80%;
        top: 50px;
    }
}
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    cursor: crosshair !important;
}

.game-summary-map .leaflet-container {
    height: 100vh !important;
}

/* Ensure map tiles load properly */
.leaflet-tile {
    max-width: none !important;
}
.round-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s;
    opacity: 1;
    scale: 1;
}

.round-over-screen.duel {
}

.round-over-screen.hidden {
    opacity: 0;
    scale: 0;
    pointer-events: none;
}
.round-over-screen.fullscreen {
    background-color: #1a1a1a;
    align-items: stretch;
    justify-content: stretch;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

.game-summary-container {
    display: flex;
    width: 100%;
    height: 100vh; /* Changed from 100% to 100vh */
    position: relative;
    font-family: lexend;
}

.game-summary-map {
    flex: 1;
    position: fixed;
    z-index: 1;
    width: calc(100% - 400px);
    height: 100vh;
    top: 0;
    right: 0;
}

.round-over-content {
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: lexend;
}




.game-summary-sidebar {
    width: 400px;
    background: linear-gradient(135deg, rgba(20, 65, 25, 0.95) 0%, rgba(20, 65, 25, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-left: 2px solid var(--primary);
    overflow: hidden; /* Remove auto scroll from main sidebar */
    z-index: 2;
    position: relative;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.summary-header {
    padding: 30px 25px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.summary-header.compact {
    padding: 10px 25px 8px;
    padding-top: 15px;
}

.summary-header.compact .summary-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.summary-header.compact .summary-score {
    font-size: 1.8rem;
    margin-bottom: 3px;
}

.summary-header.compact .summary-total {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-header.compact .star-container {
    transform: scale(0.7);
    margin: 2px 0;
}

.summary-header.compact .summary-actions {
    gap: 6px;
}

.summary-header.compact .action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.summary-title {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.summary-score {
    font-size: 3rem;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.summary-total {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.star-container {
    transition: all 0.3s ease;
}

.summary-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: lexend;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rounds-container {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.round-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.round-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.round-item.active {
    background: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4CAF50;
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.round-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.round-points {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.round-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-icon {
    font-size: 1rem;
    color: #FFD700;
}

.distance-value {
    font-weight: 500;
    color: white;
}

.location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gmaps-link {
    background: rgba(66, 133, 244, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gmaps-link:hover {
    background: rgba(66, 133, 244, 1);
    transform: scale(1.05);
}

.round-animation {
    animation: slideInFromRight 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.map-marker-popup {
    max-width: 250px;
}

.popup-content {
    text-align: center;
    font-family: lexend;
}

.popup-round {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.popup-points {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 8px;
}

.popup-distance {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

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

.popup-btn {
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn.gmaps {
    background: #4285f4;
    color: white;
}

.popup-btn:hover {
    transform: scale(1.05);
}

/* Desktop rules - always show rounds container and hide mobile expand button */
.mobile-expand-btn {
    display: none;
}

.rounds-container.mobile-hidden {
    display: block;
}

/* Ensure top padding is persistent on desktop to avoid conflicts with logo */
@media (min-width: 1025px) {
    .summary-header {
        padding-top: 60px !important;
    }


}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .game-summary-container {
        flex-direction: column;
        overflow-x: hidden;
        height: 100vh;
    }

    .game-summary-map {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    .game-summary-sidebar {
        width: 100vw;
        height: auto;
        border-left: none;
        border-top: 2px solid var(--primary);
        order: 2;
        display: grid;
        grid-template-rows: auto 0fr;
        overflow: hidden;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        transition: grid-template-rows 0.3s ease;
    }

    /* Override desktop flex layout on mobile */
    .game-summary-sidebar {
        flex-direction: initial;
    }

    .summary-header {
        position: relative !important; /* Override sticky positioning on mobile */
    }

    .game-summary-sidebar.mobile-expanded {
        grid-template-rows: auto 1fr;
        max-height: 95vh;
    }

    .mobile-expand-btn {
        display: block;
        background: var(--primaryTransparent);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.9rem;
        font-family: lexend;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-expand-btn:hover {
        background: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .rounds-container.mobile-hidden {
        overflow: hidden;
        min-height: 0;
    }

    .rounds-container {
        overflow: hidden;
        min-height: 0;
        transition: all 0.3s ease;
    }

    .game-summary-sidebar.mobile-expanded .rounds-container {
        overflow-y: auto;
        padding-bottom: 10px;
    }

    /* Low height device optimizations when expanded */
    @media (max-height: 600px) {
        .game-summary-sidebar.mobile-expanded .summary-header {
            padding: 8px 10px 5px;
        }

        .game-summary-sidebar.mobile-expanded .summary-title {
            font-size: 0.9rem;
            margin-bottom: 4px;
        }

        .game-summary-sidebar.mobile-expanded .summary-score {
            font-size: 1.8rem;
            margin-bottom: 4px;
        }

        .game-summary-sidebar.mobile-expanded .summary-total {
            font-size: 0.8rem;
            margin-bottom: 6px;
        }

        .game-summary-sidebar.mobile-expanded .summary-actions {
            gap: 4px;
            margin-bottom: 4px;
        }

        .game-summary-sidebar.mobile-expanded .action-btn {
            padding: 6px 12px;
            font-size: 0.8rem;
        }
    }

    .gmaps-link {
        display: none;
    }

    .game-summary-map {
        height: 60vh;
        width: 100vw;
        order: 1;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 5;
    }

    .summary-header {
        padding: 15px 15px 10px;
        grid-row: 1;
    }

    .summary-header:not(.mobile-expanded) {
        padding-top: 15px;
    }

    .summary-actions {
        margin-top: auto;
    }

    .rounds-container {
        grid-row: 2;
        overflow: hidden;
        min-height: 0;
    }

    .summary-title {
        font-size: 1.2rem;
    }

    .summary-score {
        font-size: 2.5rem;
    }

    .round-item {
        padding: 10px 15px;
    }

    .round-details {
        font-size: 0.85rem;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .summary-header {
        padding: 15px 10px;
    }

    .summary-title {
        font-size: 1.5rem;
    }

    .summary-score {
        font-size: 2rem;
    }

    .round-item {
        padding: 8px 12px;
    }

    .summary-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}




/* Ultra-wide screen optimizations */
@media (min-width: 1600px) and (max-height: 600px) {
    .game-summary-sidebar {
        width: 450px; /* Wider sidebar for ultra-wide screens */
    }

    .game-summary-map {
        width: calc(100% - 450px);
    }

    .summary-header {
        padding: 25px 30px 20px;
        padding-top: 50px !important;
    }

    .summary-title {
        font-size: 2rem;
    }

    .summary-score {
        font-size: 2.8rem;
    }

    .summary-actions {
        gap: 12px;
    }

    .action-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .round-item {
        padding: 12px 20px;
    }

    /* Make elements larger to fill the wider space */
    #endBanner {
        max-width: 600px;
        margin: 0 auto 10px;
    }

    .round-over-content {
        max-width: 600px;
    }

    .join-party-card {
        max-width: 500px;
    }

    /* Home page navigation separators constraint */
    .g2_nav_hr {
        max-width: 600px !important;
    }
}

/* Intermediate screens - wide but not tall enough for full desktop layout */
@media (min-width: 800px) and (max-width: 1024px) and (min-height: 451px) and (max-height: 600px) {
    .game-summary-container {
        flex-direction: row;
        height: 100vh;
    }

    .game-summary-sidebar {
        width: 350px;
        height: 100vh;
        position: relative;
        overflow-y: auto;
    }

    .game-summary-map {
        width: calc(100% - 350px);
        height: 100vh;
        position: fixed;
        right: 0;
        top: 0;
    }

    .summary-header {
        padding: 15px 20px 12px;
        padding-top: 25px !important;
    }

    .summary-title {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .summary-score {
        font-size: 2rem;
        margin-bottom: 4px;
    }

    .summary-total {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .star-container {
        margin-bottom: 0.5rem;
    }

    .star {
        font-size: 1.4rem;
    }

    .summary-actions {
        gap: 6px;
        margin-bottom: 6px;
    }

    .action-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .round-item {
        padding: 8px 15px;
    }

    .round-details {
        font-size: 0.8rem;
    }

    .elo-value {
        font-size: 1.4rem;
    }

    .elo-change {
        font-size: 0.9rem;
    }

    .time-elapsed {
        font-size: 0.9rem;
    }
}

/* Extremely low height screens */
@media (min-width: 800px) and (max-height: 350px) {
    .game-summary-sidebar {
        width: 280px !important; /* Even narrower for extreme cases */
    }

    .game-summary-map {
        width: calc(100% - 280px) !important;
    }

    .summary-header {
        padding: 3px 8px 2px !important;
        padding-top: 5px !important;
    }

    .summary-title {
        font-size: 0.7rem !important;
        margin-bottom: 1px !important;
    }

    .summary-score {
        font-size: 1rem !important;
        margin-bottom: 1px !important;
    }

    .summary-total {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }

    .star-container {
        margin-bottom: 0.1rem !important;
    }

    .star {
        font-size: 0.8rem !important;
    }

    .summary-actions {
        gap: 1px !important;
        margin-bottom: 1px !important;
    }

    .action-btn {
        padding: 1px 4px !important;
        font-size: 0.5rem !important;
    }

    .round-item {
        padding: 2px 6px !important;
    }

    .round-number {
        font-size: 0.65rem !important;
    }

    .round-points {
        font-size: 0.7rem !important;
    }

    .round-details {
        font-size: 0.55rem !important;
        gap: 0px !important;
    }

    .detail-icon {
        font-size: 0.6rem !important;
    }

    /* Hide less critical elements to save space */
    .elo-container {
        display: none !important;
    }

    .time-elapsed {
        display: none !important;
    }

    /* Minimap even smaller */
    #miniMapArea {
        width: 120px !important;
        height: 80px !important;
    }

    #miniMapContent {
        width: 120px !important;
        height: 80px !important;
    }

    .miniMap__btns {
        bottom: 90px !important;
    }

    /* End banner minimal */
    #endBanner {
        min-height: 40px !important;
        padding: 3px !important;
    }

    .bannerContent {
        font-size: 0.8em !important;
        gap: 1px !important;
    }

    .mainBannerTxt {
        font-size: 0.6em !important;
    }

    .motivation {
        font-size: 0.5em !important;
    }

    .endButtonContainer button {
        padding: 2px 4px !important;
        font-size: 0.5em !important;
    }

    /* Home page navigation separators constraint */
    .g2_nav_hr {
        max-width: 400px !important;
        height: 1.5px !important;
    }
}

/* Very low height optimizations for wide screens */
@media (min-width: 800px) and (max-height: 450px) and (min-height: 351px) {
    .game-summary-container {
        flex-direction: row;
        height: 100vh;
    }

    .game-summary-sidebar {
        width: 320px; /* Narrower sidebar for very low height */
        height: 100vh;
        position: relative;
        overflow-y: auto;
    }

    .game-summary-map {
        width: calc(100% - 320px);
        height: 100vh;
        position: fixed;
        right: 0;
        top: 0;
    }

    .summary-header {
        padding: 8px 15px 6px;
        padding-top: 12px !important;
    }

    .summary-title {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }

    .summary-score {
        font-size: 1.6rem;
        margin-bottom: 2px;
    }

    .summary-total {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .star-container {
        margin-bottom: 0.3rem;
    }

    .star {
        font-size: 1.2rem;
    }

    .summary-actions {
        gap: 4px;
        margin-bottom: 4px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .round-item {
        padding: 6px 12px;
    }

    .round-number {
        font-size: 0.9rem;
    }

    .round-points {
        font-size: 1rem;
    }

    .round-details {
        font-size: 0.75rem;
        gap: 2px;
    }

    .detail-icon {
        font-size: 0.8rem;
    }

    .elo-value {
        font-size: 1.2rem;
    }

    .elo-change {
        font-size: 0.8rem;
    }

    .time-elapsed {
        font-size: 0.8rem;
    }

    /* End banner optimizations for very low height */
    #endBanner {
        min-height: 80px;
        padding: 10px;
        margin-bottom: 5px;
    }

    .bannerContent {
        font-size: 1.2em;
        gap: 3px;
    }

    .mainBannerTxt {
        font-size: 0.9em;
    }

    .smallmainBannerTxt {
        font-size: 0.8em;
    }

    .motivation {
        font-size: 0.7em;
    }

    .endButtonContainer button {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    /* Round over content optimizations */
    .round-over-content {
        padding: 20px;
        max-width: 400px;
    }

    /* Multipler home optimizations */
    .multiplayerHome {
        padding: 10px;
    }

    /* Join party optimizations */
    .join-party-card {
        padding: 20px;
        max-width: 360px;
    }

    .join-party-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .join-party-input {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .join-party-button {
        padding: 10px 15px;
        font-size: 1rem;
    }

    /* Minimap optimizations for very low height */
    #miniMapArea {
        width: 200px !important;
        height: 150px !important;
        bottom: 10px !important;
        right: 10px !important;
    }

    #miniMapContent {
        width: 200px !important;
        height: 150px !important;
    }

    .miniMap__btns {
        bottom: 160px !important;
        right: 15px !important;
    }

    .miniMap__btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .guessBtn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .chatboxBtn {
        width: 35px !important;
        height: 35px !important;
        transform: translate(-25px, -25px) !important;
    }

    /* Onboarding div optimizations */
    .onboardingDiv {
        width: 60%;
        top: 20px;
        padding: 15px 25px;
        font-size: 1.2em;
    }

    /* Country guesser options optimizations */
    .countryGuessrOptions {
        bottom: 20px;
        width: 80%;
    }

    .countryGuessrCard {
        height: 80px;
    }

    /* Home page navigation separators constraint */
    .g2_nav_hr {
        max-width: 500px !important;
    }
}

/* Low width/height desktop optimizations */
@media (min-width: 1025px) and (max-width: 1366px), (min-width: 1025px) and (max-height: 768px) {
    .summary-header {
        padding: 20px 20px 15px;
        padding-top: 40px;
    }

    .summary-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .summary-score {
        font-size: 2.5rem;
        margin-bottom: 4px;
    }

    .summary-total {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .summary-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .star-container {
        margin-bottom: 0.75rem;
    }

    .star {
        font-size: 1.6rem;
    }

    /* ELO container adjustments */
    .elo-value {
        font-size: 1.6rem;
    }

    .elo-change {
        font-size: 0.9rem;
    }

    .time-elapsed {
        font-size: 0.9rem;
    }
}

.elo-container {
    display: flex;
    align-items: baseline; /* Align smaller text with larger text */
    gap: 8px; /* Add some space between Elo value and change */
}

.elo-value {
    font-size: 2rem; /* Make Elo value larger */
    font-weight: bold;
    color: black;
}

.elo-change {
    font-size: 1rem; /* Make Elo change smaller */
    font-weight: normal;
    color: green; /* Default color */
}

.time-elapsed {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: black;
}

.historyItem {
    font-family: lexend !important;
    color: white;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-icon {
    color: #FFD700; /* Gold color */
    font-size: 1.5rem;
}

.detail-text {
    font-size: 1.2rem;
    color: white;
    font-family: lexend;
}

.play-again-btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: lexend;
}

.play-again-btn:hover {
    background: #0056b3;
}


.star-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.star {
    font-size: 2rem;
    color: gold;
}

.star.empty {
    color: var(--primary);
    animation: none;
    opacity: 1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.wsIcon {
    position: fixed;
    z-index: 1000;
    top: 40px;
    left: 20px;
    width: 50px;
    height: 50px;
}



.input-group {
    display: flex;
    margin-bottom: 20px;
    height: fit-content;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.friend-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #444;
    color: white;
    margin: 0 !important;
    margin-right: 10px !important;
}

.send-request-button {
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    // height: fit-content;
    cursor: pointer;
}

.friends-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.friends-list-parent {
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.friend-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #444;
    padding: 10px;
    border-radius: 5px;
    max-width: 300px;
    width: 100%;
}

.view-requests-button {
    padding: 10px 20px;
    margin-right: 10px;
    border: 1.4px solid var(--primaryDark);
    width: 23%;
    min-width: 150px;
    background: var(--gradLight);
    background-color: var(--primaryTransparent);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.view-requests-button.selected {
    background-color: rgba(0, 0, 0, 0.3);

}

.request-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #444;
    padding: 10px;
    border-radius: 5px;
}

.accept-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.decline-button {
    background-color: #F44336;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cancel-button {
    background-color: #F44336;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.invite-button {
    background-color: #322ccd;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.friendsContent {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 5px;
    padding-left: 10px;
}

.friendsTabs {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.friendsSection {
    display: flex;
    gap: 20px;
    width: 100%;
    text-align: left;
    font-size: 1.2em;
    justify-content: flex-start;
}


@media screen and (max-width: 680px) {
    .friendsModal {
        width: 100% !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.mapAttr {
    position: absolute;
    z-index: 1000;
    bottom: -10px;
    left: 5px;
    pointer-events: none;
    user-select: none;
}

.react-responsive-modal-root{
    overflow: hidden !important;
}

.leaflet-control-attribution {
    display: none;
}

.leaflet-control-zoom-in span,
.leaflet-control-zoom-out span {
    color: black !important;
}

.react-responsive-modal-closeButton {
    background-color: white !important;
}

.friend-details {
    display: flex;
    flex-direction: column;
}

.friend-state {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9em;
}

.friend-name {
    font-size: 1.2em;
}

.mainHomeBtns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    margin-bottom: 20px;
}

.multiplayerPrivBtns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
}

.clueBanner {
    max-width: 40vw;
}

@media screen and (max-width: 600px) {
    .mainHomeBtns {
        flex-direction: column;
        gap: 10px;
        // height: 200px;
        height: auto;
    }

    .multiplayerPrivBtns {
        flex-direction: column;
        gap: 10px;
    }

    .clueBanner {
        max-width: 100vw;
        max-height: 50vh;
    }

    .homeBtn {
        height: 50px;
    }
}

.react-responsive-modal-modal {
    max-width: none !important;
}

/* Hide the elements with specific inline styles */
[style*="position: absolute;"][style*="pointer-events: none;"][style*="transform: translate(-50%, -50%);"][style*="z-index: 1000;"][style*="top: 50%;"][style*="color: white;"][style*="font-size: 20px;"][style*="left: 50%;"][style*="background-color: rgba(0, 0, 0, 0.3);"][style*="padding: 5px;"][style*="border-radius: 3px;"][style*="text-align: center;"] {
    display: none !important;
}

div[style*="background-color: white; font-weight: 500; font-family: Roboto, sans-serif; padding: 15px 25px; box-sizing: border-box; top: 5px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 5px; left: 50%; max-width: 375px; position: absolute; transform: translateX(-50%); width: calc(100% - 10px); z-index: 1;"] {
    display: none;
}

.mapSectionWrap{
    display: flex !important;
    flex-wrap: wrap;
}


.privacyPolicyLink {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}


.privacyPolicyLink a {
    color: white;
    text-decoration: underline;
}

.videoAdParent {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    animation: fadeOutBg 1s ease-in-out forwards;
}

.videoAdParent.hidden {
    display: none;
}




#videoad {
    width: 100%;
    height: 100%;
    background-color: #333;
}


.videoAdPlayer {
    width: 90vw;
    height: 85vh;
    min-width: 300px;
    min-height: 150px;
    max-width: 1066px;
    max-height: 570px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: rgba(0,0,0,0);
    animation: zoomInPlayer 0.5s ease-in-out forwards;
}

.messageContainer {
    width: 100%;
    z-index: 9999960;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.thankYouMessage {
    font-size: 18px;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    background-color: black;
    border-radius: 10px;
}


/* Keyframes for background fade out */
@keyframes fadeOutBg {
    0% {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }
}

/* Keyframes for player zoom in */
@keyframes zoomInPlayer {
    0% {
        transform: scale(0); /* Start slightly zoomed out */
    }

    100% {
        transform: scale(1); /* End at normal size */
    }
}


.topAdFixed {
  position: fixed;
  top: 5px;
  z-index: 1001;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 700px) {
    .topAdFixed {
        top: 50px;
    }

    .topAdFixed.moreDown {
        top: 100px;
    }
}
// .topAdFixed {
//     position: fixed;
//   bottom: 5px;
//   z-index: 100;
//   left: 50%;
//   transform: translateX(-50%);
// }
div[dir="ltr"] {
    // invert the colors
    filter: invert(1);
}

.mainBody {
    overflow: hidden;
    user-select: none;
    background-color: #000000 !important;
}

.mapSearch {
    margin: 0;
    padding: 0;
}
.mapSearch input{
    width: 90%;
    margin: 0 !important;
}

.mapSearchInput {
    width: 50%;
    background-color: #e3e3e3 !important;
    // placehoder color
    color: #000000 !important;
    font-size: 1.3em;
}

.mapSearchInput::placeholder {
    color: #454545 !important;
    opacity: 1; /* Firefox */
}

.noResults {
    font-size: 1.5em;
    color: white;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .mapSection {
        margin-left: 10px;
        margin-right: 10px;
    }
}
// mobile map section
@media screen and (max-width: 600px) {
    .mapSection {
        margin-left: 0;
        margin-right: 0;
    }

    .mapViewTitle {
        font-size: 30px;
    }

    .mapViewMake {
        font-size: 15px;
    }

    .mapViewClose {
        font-size: 15px;
    }

    .mapSearchInput {
        width: 80%;
    }
}

.mapSection.section-recent {
    background-color: rgba(0,0,0,0);
}

.section-recent .react-horizontal-scrolling-menu--scroll-container {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* gap: 10px; */
    justify-items: center;
}

.section-spotlight {
    background-color: rgba(75,0,130,0.2);
    filter: hue-rotate(140deg);
}

.linkButton {
    background-color: none;
    color: #007Bff;
    text-decoration: underline;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.linkButton:hover {
    background-color: #0056b3;
    color: white;
}

.map-tile__delete {
    cursor: pointer;
}

.map-tile__edit {
    background-color: black;
    cursor: pointer;
}

.mobile_minimap__btns {
    z-index: 10000;
}

.leagueBtn {
    position: fixed;
    top: 60px;
    width: 70px;
    height: min-content;
    right: 10px;
    animation: bounce 0.5s;
    z-index: 1000;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-align: center;
    padding: 0px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
    margin: 0;
    background-color: var(--primaryTransparent);
    padding-top: 5px;
    padding-bottom: 5px;
}

// less than 1280px
@media (max-width: 1280px) {
    .leagueBtn {
        top: 50px;
    }
}
// less than 900px
@media (max-width: 600px) {
    .leagueBtn {
        top: 45px;
    }

}

.leagueBtn:hover {
    filter: brightness(1.2);
}

@keyframes bounce {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.1;
    }

    100% {
        scale: 1;
    }
}

.badge {
    // style={{background: 'gold', color: 'black', padding: '3px', borderRadius: '10px'}}
    background: gold;
    padding: 3px;
    border-radius: 10px;
    margin-left: 5px;
    color: black;
    font-size: 0.8em;
}

.supporterBtn {
    background: gold;
}

.supporterBtn:hover {
    background: #d4af37;
}

.leaflet-zoom-anim
.leaflet-zoom-animated {
    transition-timing-function: linear;
    transition-duration: 100ms;
}

// Modern Health Bar Styles with Animations
.health-bar-container.modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    margin: 15px;
    font-family: 'Lexend', sans-serif;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    &.animating {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
    }
}

.damage-indicator {
    position: absolute;
    top: -30px;
    right: 0;
    color: #ff4757;
    font-weight: bold;
    font-size: 18px;
    animation: damage-float 2s ease-out forwards;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes damage-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2);
    }
}

.health-bar-wrapper {
    width: 100%;
    position: relative;
}

.health-bar-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 15px;
    padding: 8px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.health-bar-track {
    position: relative;
    width: 100%;
    height: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.health-bar-fill {
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 3s infinite;
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.health-bar-shine {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 8px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 10px;
}

.health-bar-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: baseline;
    gap: 2px;
    z-index: 10;
}

.health-number {
    font-size: 16px;
    font-weight: 800;
}

.health-max {
    font-size: 12px;
    opacity: 0.8;
}

.player-info-modern {
    margin-top: 12px;
    text-align: center;
    transition: all 0.3s ease;

    &.starting {
        transform: scale(1.2);
        margin-top: 16px;
    }
}

.player-name-wrapper {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.player-name {
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-right: 8px;
}

.player-elo {
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;

    &:hover {
        transform: scale(1.1);
    }
}

.hb-start1,
.hb-start2 {
    top: 50% !important;
    right: 50% !important;
    position: static !important;
}

.hb-parent {
    display: flex !important;
    justify-content: center;
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    align-items: center;
    flex-direction: column;
}

.hb-bars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 100vw;
    overflow: hidden;
}

/* AAA Game Style VS element for DUEL INTRO ONLY - not round over screen */
.hb-bars .vs-divider,
.hb-bars p {
    font-family: lexend, sans-serif !important;
    font-weight: 900 !important;
    font-size: 32px !important;
    color: #ffffff !important;
    text-shadow:
        0 0 25px #00ffff,
        0 0 50px #00ffff,
        0 0 75px #00ffff,
        3px 3px 0 #000000,
        -3px -3px 0 #000000,
        3px -3px 0 #000000,
        -3px 3px 0 #000000 !important;
    letter-spacing: 8px !important;
    animation: vsGlow 2s ease-in-out infinite alternate !important;
    margin: 12px 0 !important;
    text-align: center !important;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 12px 24px !important;
    border: 3px solid rgba(0, 255, 255, 0.4);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* AAA Game Style Duel Intro for Mobile */
@media (max-width: 830px) {
    .hb-bars {
        flex-direction: column;
        gap: 5px; /* Much closer spacing */
        animation: duelIntroSlide 0.8s ease-out;
    }

    /* Override desktop styling for mobile - DUEL INTRO ONLY */
    .hb-bars .vs-divider,
    .hb-bars p {
        font-family: lexend, sans-serif !important;
        font-weight: 900 !important;
        font-size: 28px !important;
        color: #ffffff !important;
        text-shadow:
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff,
            2px 2px 0 #000000,
            -2px -2px 0 #000000,
            2px -2px 0 #000000,
            -2px 2px 0 #000000 !important;
        letter-spacing: 6px !important;
        animation: vsGlow 2s ease-in-out infinite alternate !important;
        margin: 8px 0 !important;
        text-align: center !important;
        background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        border-radius: 8px;
        padding: 8px 16px !important;
        border: 2px solid rgba(0, 255, 255, 0.3);
    }

    /* First player at top */
    .hb-bars > div:first-child {
        order: 0;
        animation: playerSlideDown 0.6s ease-out 0.2s both;
    }

    /* Second player at bottom */
    .hb-bars > div:last-child {
        order: 2;
        animation: playerSlideUp 0.6s ease-out 0.4s both;
    }

    /* Constrain player names in VS container */
    .hb-bars .player-name {
        max-width: 180px !important; /* Increased from 120px for better long name support */
        font-size: 13px !important;
    }
}

@keyframes duelIntroSlide {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes vsGlow {
    0% {
        text-shadow:
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            2px 2px 0 #000000,
            -2px -2px 0 #000000,
            2px -2px 0 #000000,
            -2px 2px 0 #000000;
        transform: scale(1);
        border-color: rgba(0, 255, 255, 0.3);
    }
    100% {
        text-shadow:
            0 0 30px #00ffff,
            0 0 60px #00ffff,
            0 0 80px #00ffff,
            2px 2px 0 #000000,
            -2px -2px 0 #000000,
            2px -2px 0 #000000,
            -2px 2px 0 #000000;
        transform: scale(1.08);
        border-color: rgba(0, 255, 255, 0.6);
    }
}

@keyframes playerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes playerSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Media Queries */
@media (min-width: 600px) {
    .health-bar-container.modern {
        width: 280px;
        margin: 25px;
    }

    .health-bar-track {
        height: 28px;
    }

    .health-number {
        font-size: 18px;
    }

    .player-name {
        font-size: 18px;
    }

    .player-elo {
        font-size: 16px;
    }
}

@media (max-width:830px) {
    .health-bar-container.modern {
        width: 160px; /* Back to compact mobile size */
        margin: 8px;
    }

    .health-bar-track {
        height: 18px; /* Smaller track */
    }

    .health-number {
        font-size: 12px;
    }

    .health-max {
        font-size: 10px;
    }

    /* Better long name support - compact but readable */
    .player-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px; /* Increased from 140px for better long name support */
        font-size: 14px;
        display: block;
        text-align: center;
        min-width: 0; /* Allow flex shrinking */
    }

    .player-elo {
        font-size: 12px;
    }
}


.svframe {
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* This will ensure smooth transition for non-hidden state */
}

.svhidden {
    opacity: 0;
    pointer-events: none;
    transition: none;
}



@keyframes shine {
    0% {
        top: -100%;
        left: -100%;
    }

    50% {
        top: 100%;
        left: 100%;
    }

    100% {
        top: -100%;
        left: -100%;
    }
}

.elo-badge {
    opacity: 0;
}

div:hover .elo-badge {
    opacity: 1;
}

.league-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* Responsive layout for mobile devices */
@media (max-width: 600px) {
    .league-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Duel Anti-Cheat Warning */
.duel-warning-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    animation: slideInFromBottom 0.5s ease-out;
}

.duel-warning-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.warning-icon {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.warning-text {
    color: white;
    font-family: "Lexend", sans-serif;
}

.warning-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.warning-subtitle {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

@keyframes slideInFromBottom {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .duel-warning-container {
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
        animation: slideInFromBottomMobile 0.5s ease-out;
    }

    .duel-warning-content {
        padding: 12px 20px;
        gap: 12px;
        // center horiz
        margin: 0 auto;
        width: 60%;
    }

    .warning-icon {
        font-size: 20px;
    }

    .warning-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .warning-subtitle {
        font-size: 14px;
    }
}
@media (max-width: 400px) {
     .duel-warning-content {

        width: 100%;
    }
}

@keyframes slideInFromBottomMobile {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.home_ad {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
}

// under 600px, center the home_ad horiz
@media (max-width: 600px) {
    .home_ad {
        right: 50%;
        transform: translateX(50%);
    }
}
