body {
    background-color: #0a1929;
    background-image: url('public/bg/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-y: auto;
}
.title-container {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
h1 {
    font-family: inter;
    font-size: 70px;
    color: #e3f2fd;
    margin: 0;
    letter-spacing: 1px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    position: relative;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transform: rotate(-12deg);
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.2);
    margin-left: 10px;
    position: relative;
    top: -5px;
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% {
        transform: rotate(-12deg) scale(1);
        box-shadow: 0 1px 4px rgba(33, 150, 243, 0.2);
    }
    50% {
        transform: rotate(-12deg) scale(1.1);
        box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
    }
}
.word {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}
.word:nth-child(2) {
    animation-delay: 0.2s;
}
.word:nth-child(3) {
    animation-delay: 0.4s;
}
.highlight {
    color: #2196f3;
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: #2196f3;
    transform: scaleX(0);
    transform-origin: right;
    animation: underline 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes underline {
    0%, 100% {
        transform: scaleX(0);
        transform-origin: right;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
}
.container {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    flex-wrap: wrap;
}
.lobby-box, .rules-box {
    background: linear-gradient(135deg, #0d2137 0%, #102a43 100%);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(33, 150, 243, 0.15);
    width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.lobby-box::before, .rules-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
    opacity: 0.7;
}
.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 4px;
    background: rgba(16, 42, 67, 0.7);
    color: #e3f2fd;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.input-field:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
    background: rgba(16, 42, 67, 0.9);
}
.btn {
    width: 100%;
    padding: 12px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.btn:focus::after {
    animation: ripple 1s ease-out;
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}
h2 {
    color: #2196f3;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
    padding-bottom: 10px;
}
p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}
ul {
    color: #ffffff;
    padding-left: 24px;
    margin: 0;
    list-style-type: disc;
}
li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 16px;
    color: #ffffff;
    position: relative;
    padding-left: 0;
}
li:before {
    display: none;
}
li:hover:before {
    transform: none;
}
li:last-child {
    margin-bottom: 0;
}
::placeholder {
    color: #64b5f6;
    opacity: 0.7;
}
@media (max-width: 768px) {
    body {
        padding: 20px;
        min-height: 100vh;
        height: auto;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    .lobby-box, .rules-box {
        width: 100%;
        max-width: 500px;
        padding: 16px;
        margin: 0;
    }
    .title-container {
        margin-bottom: 20px;
        margin-top: 10px;
    }
    h1 {
        font-size: 36px;
    }
    .input-field {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 10px;
        height: 40px;
    }
    .btn {
        height: 44px;
        font-size: 14px;
        margin-top: 6px;
    }
    h2 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    p, li {
        font-size: 13px;
    }
    ul {
        padding-left: 16px;
    }
    li {
        margin-bottom: 6px;
    }
    .esquive-promo-container {
        display: none;
    }
    .container::after {
        content: "";
        display: block;
        width: 100%;
        margin-top: 20px;
    }
    .container .esquive-promo-container {
        position: static;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin: 20px auto 0;
        order: 3;
    }
    .container .esquive-promo {
        width: 100%;
        padding: 16px;
    }
}
@media (max-width: 360px) {
    body {
        padding: 16px 10px;
        margin: 0;
    }
    .container {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    .lobby-box, .rules-box {
        padding: 14px;
        margin: 0;
        width: 100%;
    }
    h1 {
        font-size: 28px;
        gap: 8px;
    }
    .input-field, .btn {
        height: 38px;
    }
    .esquive-buttons {
        flex-direction: row;
        gap: 5px;
    }
    .esquive-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    .esquive-promo-mobile {
        padding: 14px;
    }
}
@media (max-width: 320px) {
    h1 {
        font-size: 24px;
        gap: 5px;
    }
    .title-container {
        margin-bottom: 12px;
        margin-top: 5px;
    }
}
.credits-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    color: #2196f3;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}
.credits-content {
    position: absolute;
    width: 100%;
    text-align: center;
    animation: scrollCredits 30s linear forwards;
    padding: 20px;
    box-sizing: border-box;
}
.credits-section {
    margin-bottom: 40px;
}
.credits-title {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
}
.credits-name {
    font-size: 16px;
    color: #ffffff;
    margin: 4px 0;
}
@keyframes scrollCredits {
    from {
        transform: translateY(100vh);
    }
    to {
        transform: translateY(-100%);
    }
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 41, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}
.modal {
    background: linear-gradient(135deg, #0d2137 0%, #102a43 100%);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(33, 150, 243, 0.15);
    animation: popup-appear 0.3s ease;
    position: relative;
    overflow: hidden;
}
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
    opacity: 0.7;
}
.modal h2 {
    color: #2196f3;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}
.modal p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.modal-button {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}
.modal-button.confirm {
    background: #2196f3;
    color: #ffffff;
}
.modal-button.confirm:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.modal-button.cancel {
    background: #666;
    color: #ffffff;
}
.modal-button.cancel:hover {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 41, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}
.custom-popup {
    background: linear-gradient(135deg, #0d2137 0%, #102a43 100%);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(33, 150, 243, 0.15);
    animation: popup-appear 0.3s ease;
    position: relative;
    overflow: hidden;
}
.custom-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
    opacity: 0.7;
}
.custom-popup-message {
    color: #e3f2fd;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.custom-popup-button {
    background: #2196f3;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-popup-button:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.custom-popup-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.custom-popup-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.custom-popup-button:focus::after {
    animation: ripple 1s ease-out;
}
@keyframes popup-appear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@media screen and (max-width: 767px) {
    .custom-popup {
        max-width: 305px;
        padding: 20px;
    }
}
.discord-container {
    padding-top: 20px;
    border-top: 1px solid rgba(33, 150, 243, 0.2);
    text-align: center;
}
.discord-intro {
    color: #eea158;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 8px;
}
.discord-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #eea158, transparent);
}
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8c53c6 0%, #5865f2 100%);
    padding: 10px 18px;
    border-radius: 4px;
    justify-content: center;    
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.discord-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #9e62db 0%, #677bff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(114, 137, 218, 0.5);
}
.discord-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.discord-link i {
    font-size: 22px;
    color: #ffffff;
}
.discord-link:hover i {
    color: #ffffff;
}
.esquive-promo-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    width: auto;
}
.esquive-promo {
    position: relative;
    background: linear-gradient(135deg, #0d2137 0%, #102a43 100%);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(33, 150, 243, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.esquive-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
    opacity: 0.7;
}
.esquive-promo p {
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}
.esquive-promo .main-text {
    margin-bottom: 5px;
}
.esquive-promo .sub-text {
    display: block;
    margin-top: 5px;
}
.highlight-esquive {
    font-weight: bold;
    color: hsl(120, 100%, 85%);
}
.esquive-promo .highlight {
    font-weight: bold;
    font-style: normal;
    color: hsl(120, 100%, 85%);
}
.esquive-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.esquive-btn {
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.esquive-btn.play {
    background: rgba(33, 150, 243, 0.3);
    color: white;
    flex: 1;
    border: 1px solid rgba(33, 150, 243, 0.5);
}
.esquive-btn.play:hover {
    background: rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.esquive-btn.discord {
    background: rgba(114, 137, 218, 0.3);
    color: white;
    flex: 1;
    border: 1px solid #7289da;
}
.esquive-btn.discord:hover {
    background: rgba(114, 137, 218, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.esquive-btn i {
    margin-right: 8px;
    font-size: 16px;
}
.esquive-btn.discord i {
    color: white;
}
@media screen and (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .esquive-promo-container {
        margin-top: 20px;
        order: 3;
    }
    .esquive-promo {
        width: 100%;
    }
}
@media (min-width: 769px) {
    .container .esquive-promo-container {
        display: none; 
    }
}
.esquive-promo-desktop, .esquive-promo-mobile {
    background: linear-gradient(135deg, #0d2137 0%, #102a43 100%);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(33, 150, 243, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.esquive-promo-desktop p, .esquive-promo-mobile p {
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}
.esquive-promo-desktop .main-text, .esquive-promo-mobile .main-text {
    margin-bottom: 5px;
}
.esquive-promo-desktop .sub-text, .esquive-promo-mobile .sub-text {
    display: block;
    margin-top: 5px;
}
.esquive-promo-desktop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    z-index: 900;
}
.esquive-promo-mobile {
    width: 100%;
}
@media (max-width: 768px) {
    .esquive-promo-desktop {
        display: none; 
    }
}
@media (min-width: 769px) {
    .esquive-promo-mobile {
        display: none; 
    }
}
@media screen and (max-width: 768px) {
    .esquive-promo-mobile {
        max-width: 500px;
        padding: 16px; 
    }
}
@media screen and (max-width: 1024px) {
    .esquive-promo-desktop {
        display: none;
    }
    .esquive-promo-mobile {
        display: block;
        width: 100%;
        max-width: 500px;
        margin: 20px auto 0;
    }
    .container .esquive-promo-container {
        position: static;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin: 20px auto 0;
        order: 3;
    }
    .container .esquive-promo {
        width: 100%;
        padding: 16px;
    }
}
@media (min-width: 1025px) {
    .esquive-promo-mobile {
        display: none;
    }
    .lobby-box .esquive-promo-container {
        display: block !important;
    }
    .lobby-box .esquive-promo {
        display: block !important;
    }
}
.rules-box h2 {
    color: #2196f3;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(33, 150, 243, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.rules-box h2 i {
    color: #2196f3;
    font-size: 22px;
}
.rules-box p {
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 16px;
    padding: 10px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    border-left: 3px solid #64b5f6;
}
.rules-box p i {
    color: #2196f3;
    font-size: 18px;
    margin-right: 10px;
}
.rules-box ul {
    color: #ffffff;
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}
.rules-box li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 15px;
    color: #ffffff;
    position: relative;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
    border-radius: 4px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
}
.rules-box li:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.12) 0%, rgba(33, 150, 243, 0.05) 100%);
    transform: translateX(5px);
    border-color: rgba(33, 150, 243, 0.2);
}
.rules-box li i {
    color: #eea158;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}
.rules-box li:last-child {
    margin-bottom: 0;
}
.rules-box li:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .rules-box h2 {
        font-size: 18px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    .rules-box h2 i {
        font-size: 20px;
    }
    .rules-box p {
        font-size: 14px;
        padding: 8px 10px;
        margin-bottom: 12px;
    }
    .rules-box p i {
        font-size: 16px;
    }
    .rules-box li {
        font-size: 14px;
        padding: 8px 10px;
    }
    .rules-box li i {
        font-size: 14px;
    }
}
.lobby-box .esquive-promo-container {
    position: static;
    width: 100%;
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(33, 150, 243, 0.1);
}
.lobby-box .esquive-promo {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}
.lobby-box .esquive-promo p {
    font-size: 14px;
}
.lobby-box .esquive-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.lobby-box .esquive-btn {
    padding: 10px 12px;
    font-size: 12px;
}
@media (max-width: 1024px) {
    .lobby-box .esquive-promo-container {
        display: none;
    }
}
.account-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.btn-account {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.account-status {
    font-size: 13px;
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: #90caf9;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.4);
}
.account-status.connected {
    color: #81c784;
    background: rgba(129, 199, 132, 0.15);
    border: 1px solid rgba(129, 199, 132, 0.4);
}
.account-status.connected:hover {
    background: rgba(129, 199, 132, 0.2);
    border-color: rgba(129, 199, 132, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(129, 199, 132, 0.2);
}
.account-status.connected[onclick]:hover {
    background: rgba(129, 199, 132, 0.25) !important;
    border-color: rgba(129, 199, 132, 0.7) !important;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.account-modal {
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a3e;
}
.modal-header h2 {
    margin: 0;
    color: #e3f2fd;
    font-size: 24px;
}
.close-modal {
    background: none;
    border: none;
    color: #90caf9;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #ffffff;
}
.modal-content {
    padding: 20px;
}
.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2a2a3e;
}
.tab-btn {
    background: none;
    border: none;
    color: #90caf9;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
}
.tab-btn:hover {
    color: #ffffff;
}
.tab-btn.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tab-content .input-field {
    width: 100%;
    box-sizing: border-box;
}
.tab-intro-text {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.tab-link-container {
    margin-top: 15px;
    text-align: center;
}
.tab-link {
    color: #2196f3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.tab-link:hover {
    color: #64b5f6;
}
.btn-full {
    width: 100%;
}
.login-error-message {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}
.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
.password-strength-container {
    margin-top: 0;
    margin-bottom: 0;
}
.password-strength-title {
    text-align: center;
    color: #90caf9;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}
.password-strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(42, 42, 62, 0.6);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.2);
    margin-bottom: 5px;
}
.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.password-strength-fill.weak {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
}
.password-strength-fill.medium {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}
.password-strength-fill.strong {
    background: linear-gradient(90deg, #4caf50 0%, #388e3c 100%);
}
.password-strength-fill.very-strong {
    background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
}
.password-strength-label {
    font-size: 11px;
    text-align: right;
    color: #90caf9;
    font-weight: 500;
    min-height: 14px;
}
#profile-content {
    color: #e3f2fd;
}
.exp-bar-container {
    margin: 15px 0;
}
.exp-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}
.exp-current {
    color: #90caf9;
    font-weight: 600;
}
.exp-next {
    color: #90caf9;
    opacity: 0.7;
    font-weight: 500;
}
.exp-bar-wrapper {
    width: 100%;
    height: 20px;
    background: rgba(42, 42, 62, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.2);
    position: relative;
}
.exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196f3 0%, #1976d2 50%, #0d47a1 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}
.exp-bar-label {
    text-align: center;
    margin-top: 6px;
    font-size: 11px;
    color: #90caf9;
    opacity: 0.8;
}
.profile-info {
    margin-bottom: 20px;
}
.profile-info h3 {
    color: #2196f3;
    margin-bottom: 10px;
}
.profile-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a3e;
}
.profile-stat:last-child {
    border-bottom: none;
}
.games-history {
    margin-top: 20px;
}
.games-history h4 {
    color: #2196f3;
    margin-bottom: 10px;
}
.games-history-list {
    max-height: 160px; 
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #2196f3 transparent;
}
.games-history-list::-webkit-scrollbar {
    width: 6px;
}
.games-history-list::-webkit-scrollbar-track {
    background: transparent;
}
.games-history-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2196f3 0%, #64b5f6 100%);
    border-radius: 4px;
}
.game-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    backdrop-filter: blur(3px);
}
.game-details-modal {
    background: #0d1b2a;
    border-radius: 10px;
    padding: 20px 24px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(33, 150, 243, 0.3);
}
.game-details-header {
    margin-bottom: 16px;
}
.game-details-header h3 {
    margin: 0;
    font-size: 20px;
    color: #e3f2fd;
}
.game-details-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #90caf9;
}
.game-cancelled-message {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 6px;
    color: #ffe0b2;
    font-size: 13px;
    text-align: center;
}
.game-details-teams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.game-team-card {
    background: #111827;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    position: relative;
}
.game-team-card.winner {
    border-color: #4caf50;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.5);
}
.game-team-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: #0b1120;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}
.game-team-badge.tie {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #0b1120;
}
.game-team-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 6px;
    padding-right: 48px; 
}
.game-team-name {
    font-weight: 600;
    color: #e3f2fd;
    font-size: 14px;
}
.game-team-score {
    font-size: 13px;
    color: #ffd54f;
}
.game-team-players {
    font-size: 12px;
    color: #cbd5f5;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.game-team-players .players-label {
    font-weight: 600;
    color: #90caf9;
}
.game-team-players .players-list {
    flex: 1;
}
.game-details-footer {
    margin-top: 16px;
    text-align: right;
}
.game-details-close {
    min-width: 90px;
}
.game-history-item {
    background: rgba(16, 42, 67, 0.7);
    border: 1px solid rgba(33, 150, 243, 0.2);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.game-history-item.cancelled {
    opacity: 0.7;
    border-color: rgba(255, 152, 0, 0.3);
    background: rgba(16, 42, 67, 0.5);
}
.game-history-item:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.4);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}
.game-history-item.cancelled:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.4);
}
.game-cancelled-banner {
    position: absolute;
    top: 4px;
    right: 2px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.game-history-item .game-date {
    color: #90caf9;
    font-size: 11px;
}
.user-badge {
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
    vertical-align: middle;
}