ul, li{
    padding: 0;
    list-style-type: none;
}

.background {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;

    width: 100vw;
    height: 100vh;

    will-change: transform;
    backface-visibility: hidden;
}

@keyframes move {
    0% {
      top: 0;
      left: 0;
    }
    50% {
      top: 10px;
      left: 10px;
    }
    100% {
      top: 0;
      left: 0;
    }
}

.background css-doodle {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
    backface-visibility: hidden;
}

css-doodle {
    contain: layout style paint;
}

.container{
    min-height: 100dvh;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0px);

    background: radial-gradient(#00fffa7d, #1067d0);

    overflow-x: hidden;
}

.main-content-master{
    grid-template-columns: 15rem auto 18rem;
    grid-template-rows: min-content min-content auto;
    gap: 5px;
    width: 100%;
}

#header{
    position: relative;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    background: url('/resources/header03.png') no-repeat center / cover;

    z-index: 0;
}

.header-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0147ffc4 0, 30%, #7de8f7f2 75%);
}

.header-top, .header-bottom {
    position: relative;
    z-index: 1;
}

.header-top {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1.2fr auto;
    grid-template-rows: auto auto;
    gap: 5px;

    align-items: center;

    max-width: 1200px;
    margin: 0 auto;
}

.logo-with-effects-responsive-content {
    grid-column: 1;
    align-content: center;
}

.logo-with-effects {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 2px;
}

.logo-canvas-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas#waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.logo-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    contain: layout style;
}

.img-logo{
    width: 350px;
}

.logo-text {
    font-family: 'Orbitron Black', 'Orbitron', 'Arial Black', sans-serif;
    font-size: 60px;
    font-weight: 900;
}

.logo-letter-a {
    font-size: 90px;
}

.logo-rest {
    font-size: 70px;
}

.img-logo {
    width: 100%;
    height: auto;
}

.pr0m0-area {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ban-slot1 {
    width: 729px;
    height: 91px;
    border: 2px dashed rgba(255,255,255,0.3);
    background: rgb(91 91 91 / 20%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slot-text {
    color: #fff;
    font-weight: bold;
}

.ban-slot1:hover {
    opacity: 1;
}


.header-bottom{
    background: linear-gradient(1deg, #3a01ff 0, 30%, #449ee8 75%);
    border-top: 4px solid #00c8ff;
    border-bottom: 4px solid #00c8ff;
}

.header-menu {
    grid-column: 1 / span 3;
    grid-row: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.menu{
    display: flex;
    width: 100%;
    border-right: 3px solid #00c8ff;
    justify-content: center;
    cursor: pointer;

    align-items: center;
    justify-content: center;
}

.menu:last-child {
    border-right: none;
}

.menu:hover {
    color: #7de8f7;
}

.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-player-bar {
    display: flex;
    align-items: center;
    height: 36px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-player-textbox {
    width: 0;
    padding: 0;
    border: none;
    background-color: white;
    color: #333;
    font-size: 14px;
    outline: none;
    height: 100%;
    transition: all 0.3s ease;
    opacity: 0;
}

.search-player-button {
    background-color: transparent;
    padding: 0;
    height: 36px;
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.img-icon-search {
    height: 20px;
    width: 20px;
}

.search-player-bar:hover {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-player-bar:hover .search-player-textbox {
    width: 115px;
    padding: 0 12px;
    opacity: 1;
}

.search-player-bar:hover .search-player-button {
    background-color: #d6d6d6;
}

.search-player-bar.focused {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-player-bar.focused .search-player-textbox {
    width: 115px;
    padding: 0 12px;
    opacity: 1;
}

.search-player-bar.focused .search-player-button {
    background-color: #d6d6d6;
}

.icon-home-home, .icon-home-how-to-play, .icon-home-rules, .icon-home-suggestions, .icon-home-about {
    width: 20px;
    height: 20px;
    margin-right: 3px;
}

.menu:hover .icon-home-home,
.menu:hover .icon-home-how-to-play,
.menu:hover .icon-home-rules,
.menu:hover .icon-home-suggestions,
.menu:hover .icon-home-about {
    animation: shakeInfo 1.7s ease-in-out forwards;
}

@keyframes shakeInfo {
    0% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    60% { transform: translateX(1px); }
    70% { transform: translateX(0); }
    100% { transform: translateX(0); }
}



.content-container{
    display: flex;

    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

#main-content-column-1{
    border-radius: 10px;
    margin: 10px;
    display: flex;
    flex-direction: column;

    height: auto;
    width: 100%;
}

.lobbys {
    border: 3px solid #00c8ff;
    border-radius: 30px;

    background: linear-gradient(135deg, rgba(77, 119, 255, 0.9) 0%, rgba(0, 200, 255, 0.8) 50%, rgba(77, 119, 255, 0.9) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 200, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);

    margin-top: 20px;
}

.tab-container{
    display: flex;
    justify-content: flex-end;

    margin: 11px 33px 13px 24px;

    position: relative;
    gap: 6px;
}

.tab-header {
    display: flex;

    width: auto;

    overflow-x: hidden;
    scroll-behavior: smooth;

    position: absolute;
    top: -18px;
    left: 11%;
    transform: translateX(-50%);
    z-index: 3;
}

label{
    flex-shrink: 0;
}

.tab-label {
    background-color: rgb(236, 234, 234);
    outline: none;
    cursor: default;
    padding: 1rem;

    margin-right: 0.5rem;
    margin-left: 0.5rem;

    border-radius: 15px;

    display: flex;
    backdrop-filter: blur(10px);
}

.tab-button:checked + .tab-label {
    border-radius: 8px;
    font-size: 20px;
    text-align: center;
    background: linear-gradient(135deg, #4d77ff, #00c8ff);
    margin: 0;
    padding: 12px 20px 8px 16px;
    color: white;
    font-weight: 600;
    text-decoration: underline;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 200, 255, 0.3);
    border: 2px solid #00c8ff;
}

.icon-home-playnow {
    width: 28px;
    height: 28px;
    margin-right: 4px;

    animation: pulseRotation 7s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes pulseRotation {
    0%, 70% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
    85% {
        transform: rotate(180deg) scale(1.15);
        filter: brightness(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: brightness(1);
    }
}

.nickname-field, .search-lobby-field, .language-lobby-field {
    position: relative;
    display: inline-block;
    align-self: center;
    width: 200px;
}

.nickname, .search-lobby, .language-title {
    width: 100%;
    height: 38px;
    padding-left: 30px;
    padding-right: 15px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.3);
    border-image: initial;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
}

.language-title {
    padding-right: 30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.icon-home-nickname, .icon-home-search-lobby, .icon-home-language {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}



.tab-content {
    flex-direction: column;
    display: flex;

    background-color: #e4e4e4;

    margin: 10px 8px;
    border-radius: 30px 0px 0px 30px;

    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.join-lobby-data {
    display: flex;
    flex-direction: row;
    background-color: #00c8ff;
    border-radius: 15px;

    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lobby-blocks-container {
    justify-content: flex-start;

    width: 100%;
    height: 220px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);

    position: relative;
    box-sizing: border-box;
    margin-top: 5px;
    margin-left: 5px;
    margin-bottom: 5px;

    will-change: scroll-position;
    backface-visibility: hidden;
}

.lobby-blocks-container::-webkit-scrollbar {
    width: 8px;
}

.lobby-blocks-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lobby-blocks-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fafbff, #abedff);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.lobby-blocks-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #fafbff, #53daff);
    background-clip: content-box;
}

.lobby-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    height: 50px;
    font-family: Arial, sans-serif;
    text-align: left;
    cursor: pointer;

    border-radius: 7px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: absolute;
    box-sizing: border-box;
    margin: 3px;
}

.lobby-block:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 200, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 200, 255, 0.4);
}

.lobby-block div {
    color: #3d3d3d;
    font-weight: bold;
    background: rgba(0, 200, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}



.main-buttons {
    display: flex;
    padding: 12px 25px 18px 45px;
    margin-right: 8px;
    gap: 15px;
}

.left-buttons {
    display: flex;
    flex: 1;
    gap: 8px;
}

.right-buttons {
    flex: 2;
    display: flex;
}

.main-button {
    flex: 1;
    text-align: center;

    padding: 12px 20px;
    border-radius: 12px;

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

    font-size: 14px;
}

#refresh-button{
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

#refresh-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

#info-button{
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    white-space: nowrap;
}

#info-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

#join-button {
    border: none;
    border-radius: 15px;
    cursor: pointer;

    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    overflow: hidden;
    position: relative;
}

#join-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

#join-button:disabled,
#info-button:disabled {
    background: rgba(255, 255, 255, 0.5) !important;
    color: rgba(0, 0, 0, 0.4) !important;
    cursor: auto !important;
    transform: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.icon-home-refresh {
    transition: none;
    width: 24px;
    height: 24px;
}

#refresh-button:hover .icon-home-refresh {
    animation: rotateAndScale 1.2s ease-out forwards;
}

@keyframes rotateAndScale {
    0% {
        transform: rotate(0deg) scale(1);
        animation-timing-function: linear;
    }
    50% {
        transform: rotate(-180deg) scale(1.2);
        animation-timing-function: linear;
    }
    100% {
        transform: rotate(-360deg) scale(1);
    }
}

.icon-home-lobby-info {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 22px;
    height: 22px;
}

#info-button:hover .icon-home-lobby-info {
    transform: scale(1.2);
}

.icon-home-play {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#join-button:hover .icon-home-play {
    animation: slide-play-icon 5.5s infinite;
}

#join-button:disabled .icon-home-play,
#info-button:disabled .icon-home-lobby-info {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}
#join-button:disabled:hover .icon-home-play {
    animation: none !important;
    transform: none !important;
}
#info-button:disabled:hover .icon-home-lobby-info {
    transform: none !important;
}

@keyframes slide-play-icon {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    10% {
        transform: translateX(0) scale(1.2);
        opacity: 1;
    }
    20% {
        transform: translateX(5px) scale(1.2);
        opacity: 1;
    }
    25% {
        transform: translateX(30px) scale(1.2);
        opacity: 0;
    }
    30% {
        transform: translateX(-30px) scale(1.2);
        opacity: 0;
    }
    35% {
        transform: translateX(-30px) scale(1.2);
        opacity: 0;
    }
    40% {
        transform: translateX(-5px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateX(0) scale(1.2);
        opacity: 1;
    }
    60% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    95% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}



.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    padding: 20px;
    z-index: 1000;
    display: none;

    background-image: linear-gradient(rgb(81, 94, 255) 0%, rgb(0, 192, 255) 100%);
    color: white;
    border: none;
}

.popup.hidden {
    display: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 20px;
}

.about-popup-title {
    padding: 0px;
    margin: 0px;
    font-weight: bold;
}

.about-popup-info {
    margin: 0px;
}

.close-popup-button {
    background-color: transparent;
    user-select: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 4px;
}

.close-popup-button:hover {
    background-color: transparent !important;
    transition: transform 0.7s ease;
    transform: rotate(360deg);
}

.close-popup-button-image {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-block; 
    vertical-align: middle; 
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

.nick-popup {
    padding: 0px;
    margin: 0px;
    font-weight: bold;
}

.validation-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.validation-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.close-popup-duplicated-nick {
    align-self: center;
    margin: 3px;
}

#error-popup {
    background-image: linear-gradient(rgb(81, 94, 255) 0%, rgb(0, 192, 255) 100%);
    color: white;
    border: none;
}

.error-popup-title {
    padding: 0px;
    margin: 0px;
    font-weight: bold;
    color: white;
}

.error-popup-info {
    margin: 0px;
}



#popup-dialogs-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

#popup-dialogs-info.active {
    display: block;
}

#center-dialogs-popup-info {
    pointer-events: none;
    touch-action: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-dialog-popup-info {
    pointer-events: all;
    touch-action: auto;
    position: relative;
    max-width: 90%;
    max-height: 85%;
    min-width: 600px;
    min-height: 400px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;

    z-index: 3;
    align-self: center;

    border: 1px solid;
    border-color: #515eff;
    border-radius: 17px;
    background-image: linear-gradient(#515eff 0%, #00c0ff 100%);
    color: white;
}

.dialog-title-popup-info {
    background-image: linear-gradient(#515eff 0%, #00c0ff 100%);
    border-radius: 5px 5px 5px 5px;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: bold;
    margin-top: -30px;
    padding: 8px 15px;
    position: relative;
    text-align: center;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-self: center;
}

.info-icon-dialog-popup {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.popup-main-content {
    display: flex;
    width: 100%;
    gap: 30px;
    margin-top: 20px;
    flex: 1;
}

.lobby-info-column {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-label {
    font-weight: bold;
    min-width: 120px;
    color: #e8f4f8;
}

.info-value {
    color: white;
    word-wrap: break-word;
    flex: 1;
    text-align: right;
}

.vertical-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 10px 0;
}

.players-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.players-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.players-title-count {
    display: flex;
    justify-content: space-between;
}

.players-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: #e8f4f8;
    margin: 0;
}

.players-count {
    text-align: center;
    font-weight: bold;
    color: white;
    align-content: center;
}

.lobby-detail {
    font-weight: bold;
}

.connected-players-list {
    flex: 1;
    max-height: fit-content;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.player-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 4px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    height: 35px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.player-item:hover {
    background-color: #f0f8ff;
}

.player-item:last-child {
    margin-bottom: 0;
}

.player-score {
    color: #0f81ef;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
}

.player-separator {
    color: #666;
    flex-shrink: 0;
    margin: 0px 4px 0px 4px;
}

.player-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.players-title-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.players-count {
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    color: #1976d2;
}

.no-players {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.close-popup-button-info {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-popup-button-info:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.close-popup-button-image {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.connected-players-list::-webkit-scrollbar {
    width: 6px;
}

.connected-players-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.connected-players-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.connected-players-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}



.ban-slot2 {
    width: 729px;
    height: 91px;
    border: 2px dashed rgba(255,255,255,0.3);
    background: rgb(91 91 91 / 20%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin: 10px;
}

.ban-slot2:hover {
    opacity: 1;
}


#main-content-column-2 {
    margin: 10px;
}

.ranking-container {
    width: 285px;
    height: 485px;
    border: 4px solid #00c8ff;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    border-radius: 30px;
    position: relative;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
}

.ranking-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #4d77ff, #00c8ff);
    color: white;
    margin: 0;
    border-radius: 8px;
    text-decoration: none;
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);

    display: flex;
    align-items: center;
    text-decoration: underline;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 200, 255, 0.3);
    border: 2px solid #00c8ff;
    padding: 8px 20px 10px 16px;
}

.ranking-content-wrapper {
    height: calc(100% - 30px);
    margin-top: 30px;
    border-radius: 0 0 25px 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.ranking-content {
    height: calc(100% - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    box-sizing: border-box;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.ranking-entry {
    padding: 5px 15px 5px 15px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    grid-template-columns: fit-content(100%) auto;
    margin: 10px 0;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    display: flex;

    align-items: center;
}

.ranking-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(77, 119, 255, 0.3);
}

.ranking-entry:hover::before {
    left: 100%;
}

.ranking-position {
    font-weight: 900;
    color: #4d77ff;
    margin-right: 8px;
    text-shadow: 0 0 8px rgba(77, 119, 255, 0.3);
    font-size: 13px;
}

.ranking-info {
    flex-grow: 1;
    overflow: hidden;
    position: relative;

    padding: 13px 0px;
}

.ranking-info.needs-animation:hover .ranking-nickname {
    animation: slide-text 2s linear infinite alternate;
}

@keyframes slide-text {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--translate-distance, 0));
    }
}

.ranking-nickname {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;

    white-space: nowrap;
    transition: transform 2s linear;
    cursor: pointer;
}

.ranking-wins {
    font-size: 12px;
    color: #000bff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.2);

    margin-left: 20px;
    white-space: nowrap;
}


.ranking-content::-webkit-scrollbar {
    width: 6px;
}

.ranking-content::-webkit-scrollbar-track {
    background: rgba(77, 119, 255, 0.1);
    border-radius: 3px;
}

.ranking-content::-webkit-scrollbar-thumb {
    background: linear-gradient(#4d77ff, #00c8ff);
    border-radius: 3px;
}

.last-winner h2,
.ranking-list h2 {
    font-size: 16px;
    padding-bottom: 3px;
    position: relative;
    color: #4d77ff;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.last-winner {
    padding-top: 12px;
    padding-bottom: 8px;
}

.last-winner h2::after,
.ranking-list h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c8ff, transparent);
}

.no-players-text {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: break-spaces;
}

.no-winners-previous-day-text{
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}



.icon-container {
    position: relative;
    display: inline-block;
}

.icon-home-ranking-title {
    width: 28px;
    height: 28px;
    margin-right: 4px;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 6px white, 0 0 12px white, 0 0 18px white;
    z-index: 10;
}

@keyframes firefly-random {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5);
    }
    20%, 80% { 
        opacity: 1; 
        transform: scale(1);
    }
    40% { 
        opacity: 0.7; 
        transform: scale(1.2);
    }
    60% { 
        opacity: 0.9; 
        transform: scale(0.8);
    }
}


.icon-home-ranking-last-winner {
    width: 21px;
    height: 21px;
    margin-right: 4px;
}

.icon-home-ranking-daily {
    width: 21px;
    height: 21px;
    margin-right: 4px;
}



@media only screen
  and (min-width: 973px)
  and (max-width: 1200px)
  and (orientation: landscape) {

    .main-content-master {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 0;
        padding: initial;

        width: initial;
    }

    #main-content-column-1 {
        width: initial;
        margin: 10px 5px 0px 5px;
    }
    
    .lobbys {
        margin-top: 20px;
        border-radius: 20px;
    }
    
    .tab-container {
        margin: 9px 14px 13px 14px;
        justify-content: center;
        gap: 4px;
    }
    
    .tab-header {
        left: initial;
        transform: initial;
        position: initial;
        top: 0px;
        margin-right: 5px;
    }
    
    .tab-label {
        padding: 0.7rem 1rem;
        font-size: 14px;
        margin: 0 0.2rem;
    }
    
    .tab-button:checked + .tab-label {
        box-shadow: none;
        align-items: center;
        justify-content: center;
    }
    
    .icon-home-playnow {
        width: 22px;
        height: 22px;
        margin-right: 8px;
    }
    
    .nickname-field, .search-lobby-field, .language-lobby-field {
        width: 100%;
        margin: 5px 0;
        flex: 1;
        margin: 8px 0px 2px 0px;
    }
    
    .nickname, .search-lobby, .language-title {
        height: 35px;
        font-size: 14px;
    }
}

@media only screen
  and (min-width: 973px)
  and (max-width: 1073px)
  and (orientation: landscape) {

    #main-content-column-2 {
        margin-bottom: 30px;
    }

    .content-container {
        display: flex;
        max-width: initial;
        margin: initial;
        flex-direction: column;
    }

    .ranking-container {
        width: 100%;
    }

    .last-winner h2, .ranking-list h2 {
        font-size: 16px;
    }

    .ranking-entry {
        padding: 8px 12px;
        margin: 8px 0;
        overscroll-behavior: auto;
    }

    .ranking-nickname {
        font-size: 16px;
    }

    .ranking-wins {
        font-size: 15px;
        margin-left: 15px;
    }

    .no-players-text, .no-winners-previous-day-text {
        font-size: 16px;
        padding: 14px 12px;
        text-align: center;
    }


}


@media only screen and (orientation: portrait), (max-aspect-ratio: 4/3) {

    .main-content-master {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 0;
        padding: initial;

        width: initial;
    }

    .header-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 100%;
        background: url('/resources/header03.png') no-repeat center / cover;

        z-index: 0;
    }

    #header {
        display: flex;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        grid-template-columns: none;
        gap: 0px;

        max-width: initial;
        margin: initial;

        width: 100%;

        flex-direction: row;
    }

    .logo-with-effects-responsive-content {
        grid-column: none;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .logo-with-effects {
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
        border-radius: 2px;
    }

    .logo-canvas-container {
        height: 70px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .img-logo {
        width: 200px;
    }

    .logo-letter-a {
        font-size: 80px;
    }

    .logo-rest {
        font-size: 60px;
    }
    
    #waves {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .pr0m0-area {
        grid-column: none;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    .ban-slot1 {
        width: 320px;
        height: 50px;
        max-width: 100%;
        font-size: 11px;
    }
    
    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 43px;
        height: 43px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 10px;
        flex-shrink: 0;
    }
    
    .mobile-menu-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    
    
    .mobile-side-panel {
        position: fixed;
        top: 0;
        right: -60%;
        width: 60%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(77, 119, 255, 0.95) 0%, rgba(0, 200, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-left: 1px solid #00c8ff;
        z-index: 3;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-side-panel.active {
        right: 0;
    }
    
    .side-panel-header {
        display: flex;
        justify-content: flex-end;
        padding: 20px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .close-panel-button {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid #00c8ff;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .close-panel-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .side-panel-menu {
        color: white;

        display: flex;
        flex-direction: column;
        height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .side-panel-menu-item {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        font-weight: bold;
        flex-shrink: 0;
    }
    
    .side-panel-menu-item:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 35px;
    }
    
    .side-panel-menu-item img {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        filter: brightness(0) invert(1);
    }

    .side-panel-menu-item.about-item {
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-dropdown {
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
        margin: 0 25px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .search-dropdown.active {
        max-height: 80px;
        margin-top: 10px;
    }
    
    .mobile-search-form {
        display: flex;
        gap: 10px;
        align-items: center;
        width: 100%;
    }
    
    .mobile-search-input {
        flex: 1;
        padding: 10px 8px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        min-width: 0;
    }

    .mobile-search-input:disabled {
        background: rgba(255, 255, 255, 0.5);
        color: #666;
    }
    
    .mobile-search-button {
        padding: 8px 12px;
        background: linear-gradient(135deg, #4d77ff, #00c8ff);
        border: none;
        border-radius: 8px;
        color: white;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-button img {
        width: 20px;
        height: 20px;
    }
    
    .mobile-search-button:hover {
        transform: scale(1.05);
    }
    
    .content-container {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        padding: 0 5px;
    }
    
    #main-content-column-1 {
        width: initial;
        margin: 10px 5px 0px 5px;
        order: 1;
    }
    
    .lobbys {
        margin-top: 10px;
        border-radius: 20px;
    }
    
    .tab-container {
        margin: 40px 15px 10px 15px;
        justify-content: center;
        gap: 4px;
    }
    
    .tab-header {
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        top: -55px;
    }
    
    .tab-label {
        padding: 0.7rem 1rem;
        font-size: 14px;
        margin: 0 0.2rem;
    }
    
    .tab-button:checked + .tab-label {
        font-size: 16px;
        padding: 8px 14px 5px 12px;

        box-shadow: none;
        width: 130px;
        align-items: center;
        justify-content: center;
    }
    
    .icon-home-playnow {
        width: 22px;
        height: 22px;
        margin-right: 8px;
    }
    
    .nickname-field, .search-lobby-field, .language-lobby-field {
        width: 100%;
        margin: 5px 0;
    }
    
    .nickname, .search-lobby, .language-title {
        height: 35px;
        font-size: 14px;
    }

    .lobby-blocks-container {
        padding: 10px;
        height: 300px;
        border-radius: 10px;
        backdrop-filter: initial;
    }

    .lobby-block {
        padding: 10px;
        height: 50px;
        font-size: 15px;

        margin-right: 5px;
        margin-bottom: 5px;
    }

    .lobby-block:hover {
        transform: translateY(-3px);
    }
    
    .lobby-block div {
        font-size: 13px;
        padding: 3px 6px;
    }

    .main-buttons {
        gap: 7px;
        padding: 15px 20px;
        margin-right: initial;
    }
    
    .left-buttons, .right-buttons {
        flex-direction: column;
        gap: 4px;
        flex: 1;
        height: 80px;
    }
    
    .main-button {
        padding: initial;
        font-size: 16px;
        border-radius: 7px;
    }
    
    #join-button {
        font-size: 18px;
        font-weight: bold;
        border-radius: 7px;
    }
    
    .ban-slot2 {
        width: 320px;
        max-width: 100%;
        height: 50px;
        margin: 15px auto;
        font-size: 11px;
    }

    .player-item {
        padding: 4px 6px;
        font-size: 0.9em;
    }
    
    .player-rank {
        min-width: 25px;
        margin-right: 6px;
    }
    
    .player-score {
        font-size: 0.8em;
    }

    .center-dialog-popup-info {
        max-height: 80vh;
        min-height: auto;
        overflow-y: auto;
    }

    .popup-content {
        width: 100%;
    }

    .dialog-title-popup-info {
        align-self: center;
        margin-right: 16px;
    }

    .popup-main-content {
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;
        max-height: calc(80vh - 200px);
        width: 100%;
    }

    .lobby-info-column {
        margin-right: 8px;
    }

    .players-column {
        margin-right: 8px;
    }

    .connected-players-list {
        overflow-y: auto;
    }
    
    .vertical-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
        margin: 10px 0;
        display: block;
        flex-shrink: 0;
    }
    
    .info-label {
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 0.9rem;
        text-align: right;
    }
    
    #main-content-column-2 {
        order: 2;
        margin: 0px 5px 30px 5px;
        width: initial;
    }
    
    .ranking-container {
        width: 100%;
        height: 550px;
        margin: 0px auto 0 auto;
        padding: 10px;
    }
    
    .ranking-title {
        font-size: 18px;
        padding: 6px 16px 8px 12px;
    }
    
    .icon-container {
        margin-right: 8px;
    }
    
    .icon-home-ranking-title {
        width: 25px;
        height: 25px;
    }
    
    .ranking-content {
        padding: 12px;
        margin-top: 0px;
    }
    
    .ranking-entry {
        padding: 8px 12px;
        margin: 8px 0;

        overscroll-behavior: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .ranking-nickname {
        font-size: 16px;
    }
    
    .ranking-wins {
        font-size: 15px;
        margin-left: 15px;
    }
    
    .ranking-position {
        margin-right: 10px;
        font-size: initial;
    }

    .last-winner h2,
    .ranking-list h2 {
        font-size: 16px;
        padding-bottom: 8px;
        position: relative;
        color: #4d77ff;
        text-align: center;

        display: flex;
        align-items: center;
        justify-content: normal;
    }

    .last-winner h2::after,
    .ranking-list h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 40%;
        transform: translateX(-50%);
        width: 80%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #00c8ff, transparent);
    }

    .icon-home-ranking-last-winner {
        width: 25px;
        height: 25px;
        margin-right: 4px;
    }

    .icon-home-ranking-daily {
        width: 25px;
        height: 25px;
        margin-right: 4px;
    }
    
    .search-container {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 10px;
        order: 10;
    }
    
    .search-player-bar {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .no-players-text, .no-winners-previous-day-text {
        font-size: 16px;
        padding: 14px 12px;
        text-align: center;
    }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {

    #header {
        display: flex;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        grid-template-columns: none;
        gap: 0px;

        max-width: initial;
        margin: initial;

        width: 100%;

        flex-direction: row;
    }

    .logo-with-effects-responsive-content {
        grid-column: none;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .logo-with-effects {
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
        border-radius: 2px;
    }

    .logo-canvas-container {
        height: 70px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .img-logo {
        width: 200px;
    }
    
    #waves {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 43px;
        height: 43px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 10px;
        flex-shrink: 0;
    }
    
    .mobile-menu-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    
    .mobile-side-panel {
        position: fixed;
        top: 0;
        right: -60%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(77, 119, 255, 0.95) 0%, rgba(0, 200, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-left: 1px solid #00c8ff;
        z-index: 3;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-side-panel.active {
        right: 0;
    }
    
    .side-panel-header {
        display: flex;
        justify-content: flex-end;
        padding: 7px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .close-panel-button {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid #00c8ff;
        border-radius: 50%;
        color: white;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .close-panel-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .side-panel-menu {
        color: white;

        display: flex;
        flex-direction: column;
        height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .side-panel-menu-item {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        font-weight: bold;
        flex-shrink: 0;
    }
    
    .side-panel-menu-item:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 35px;
    }
    
    .side-panel-menu-item img {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        filter: brightness(0) invert(1);
    }

    .side-panel-menu-item.about-item {
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-dropdown {
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
        margin: 0 25px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .search-dropdown.active {
        max-height: 80px;
        margin-top: 10px;
        overflow: visible;
    }
    
    .mobile-search-form {
        display: flex;
        gap: 10px;
        align-items: center;
        width: 100%;
    }
    
    .mobile-search-input {
        flex: 1;
        padding: 10px 8px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        min-width: 0;
    }

    .mobile-search-input:disabled {
        background: rgba(255, 255, 255, 0.5);
        color: #666;
    }
    
    .mobile-search-button {
        padding: 8px 12px;
        background: linear-gradient(135deg, #4d77ff, #00c8ff);
        border: none;
        border-radius: 8px;
        color: white;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-button img {
        width: 20px;
        height: 20px;
    }
    
    .mobile-search-button:hover {
        transform: scale(1.05);
    }

    .pr0m0-area {
        grid-column: none;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    .ban-slot1 {
        width: 729px;
        height: 91px;
        max-width: 100%;
        font-size: 11px;
    }

    .main-content-master {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 0;
        padding: initial;

        width: initial;
    }

    #main-content-column-1 {
        width: initial;
        margin: 10px 5px 0px 5px;
    }
    
    .lobbys {
        margin-top: 0px;
        border-radius: 20px;
    }
    
    .tab-container {
        margin: 9px 14px 13px 14px;
        justify-content: center;
        gap: 4px;
    }
    
    .tab-header {
        left: initial;
        transform: initial;
        position: initial;
        top: 0px;
        margin-right: 5px;
    }
    
    .tab-label {
        padding: 0.7rem 1rem;
        font-size: 14px;
        margin: 0 0.2rem;
    }
    
    .tab-button:checked + .tab-label {

        box-shadow: none;
        align-items: center;
        justify-content: center;
    }
    
    .icon-home-playnow {
        width: 22px;
        height: 22px;
        margin-right: 8px;
    }
    
    .nickname-field, .search-lobby-field, .language-lobby-field {
        width: 100%;
        margin: 5px 0;
        flex: 1;
        margin: 8px 0px 2px 0px;
    }
    
    .nickname, .search-lobby, .language-title {
        height: 35px;
        font-size: 14px;
    }

    #main-content-column-2 {
        margin-bottom: 30px;
    }

    .content-container {
        display: flex;
        max-width: initial;
        margin: initial;
        flex-direction: column;
    }

    .ranking-container {
        width: 100%;
        margin-top: 0px;
    }

    .last-winner h2, .ranking-list h2 {
        font-size: 16px;
    }

    .ranking-entry {
        padding: 8px 12px;
        margin: 8px 0;
        overscroll-behavior: auto;
    }

    .ranking-nickname {
        font-size: 16px;
    }

    .ranking-wins {
        font-size: 15px;
        margin-left: 15px;
    }

    .no-players-text, .no-winners-previous-day-text {
        font-size: 16px;
        padding: 14px 12px;
        text-align: center;
    }
}