@font-face {
    font-family: 'ZheaFont';
    src: url('zhea.woff2') format('woff2'); 
    font-display: swap;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #e6f7ff; 
    font-family: 'ZheaFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s;
}

body::before, body::after {
    content: '';
    position: absolute;
    z-index: 0; 
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: backgroundShapes 20s ease-in-out infinite alternate;
}
body::before { width: 350px; height: 350px; background: rgba(255, 126, 95, 0.4); top: 5%; left: 10%; mix-blend-mode: overlay;}
body::after { width: 300px; height: 300px; background: rgba(78, 154, 255, 0.4); bottom: 10%; right: 15%; animation-delay: -10s; mix-blend-mode: overlay;}

@keyframes backgroundShapes {
    from { transform: translateX(0) translateY(0) scale(1); }
    to { transform: translateX(80px) translateY(50px) scale(1.2); }
}

.container {
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    box-shadow: 
        inset 2px 2px 6px rgba(255, 255, 255, 0.7), 
        inset -6px -6px 12px rgba(0, 0, 0, 0.1), 
        25px 25px 50px rgba(0, 0, 0, 0.25);
        
    padding: 40px 50px;
    text-align: center;
    max-width: 900px;
    width: 96%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: jellyPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes jellyPop {
    0% { opacity: 0; transform: scale(0.8) translateY(50px); }
    60% { opacity: 1; transform: scale(1.03) translateY(-10px); }
    80% { transform: scale(0.98) translateY(5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

h1 {
    color: #2c3e50;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    font-size: 2.6em;
    margin-top: 0;
    margin-bottom: 20px;
    animation: titleFloat 3s ease-in-out infinite;
}
@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.game-icon { display: inline-block; margin: 0 5px; }

.info-box {
    background: linear-gradient(135deg, #fffdf2 0%, #fff0f0 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(255, 140, 100, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 22px 15px;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 12px;
    background: linear-gradient(90deg, #ff8473, #fff9d2);
    opacity: 0.7;
}

.qa-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-item {
    position: relative;
}

.qa-question {
    font-size: 1.2em;
    font-weight: normal; 
    margin-bottom: 4px;
    background: linear-gradient(45deg, #c0392b, #d35400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #c0392b; 
    
    letter-spacing: 0.4px;
}

.qa-answer {
    font-size: 0.96em;
    color: #7a5c53;
    line-height: 1.5;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.qa-answer strong {
    color: #c0392b;
    font-weight: 800;
}

.highlight {
    background: rgba(255, 126, 95, 0.15);
    padding: 0 4px;
    border-radius: 4px;
    color: #d35400;
}

.qa-link {
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed rgba(230, 126, 34, 0.5);
    transition: all 0.3s;
}

.qa-link:hover {
    color: #d35400;
    border-bottom-style: solid;
}

.btn-wrapper {
    position: relative;
    margin-top: 25px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.status-badges {
    position: absolute;
    top: -12px;
    right: 18px;
    display: flex;
    gap: 5px; 
    z-index: 5; 
    pointer-events: none; 
}

.badge {
    pointer-events: auto;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    opacity: 0; 
    transform: translateY(5px);
    transition: all 0.4s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}
.badge.show { opacity: 1; transform: translateY(0); }
.badge-map {
    color: #00796b;
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
    
    width: 100px; 
    max-width: 100px;
    
    overflow: hidden; 
    position: relative;
    justify-content: flex-start; 
    white-space: nowrap; 
}

.badge-map span {
    display: inline-block;
    padding-left: 0;
    white-space: nowrap;
}

.badge-map span.scroll-mode {
    animation: marquee 9s linear infinite; 
}

.badge-server-name { 
    color: #4a69bd; width: 156px; overflow: hidden; position: relative; padding: 4px 0; 
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    justify-content: flex-start;
}
.badge-server-name span { display: inline-block; padding-left: 0; white-space: nowrap; animation: marquee 20s linear infinite; animation-delay: 2s; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.badge-players {
    color: #6a1b9a;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    cursor: pointer;
}
.badge-players:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(106, 27, 154, 0.15); }

.player-list-tooltip {
    position: absolute; bottom: 130%; right: 0; background: rgba(255, 255, 255, 0.98); border-radius: 12px; padding: 12px; width: 210px; box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05); text-align: left; display: none; z-index: 100; animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.player-list-tooltip.active { display: block; }
.player-list-ul { list-style: none; padding: 0; margin: 0; max-height: 160px; overflow-y: auto; }
.player-list-ul li { font-size: 12px; color: #444; padding: 4px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center;}
.player-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px;}
.player-time { font-size: 10px; color: #666; background: #f4f6f7; padding: 1px 5px; border-radius: 4px; margin-left: 5px; white-space: nowrap;}
.player-list-tooltip h4 { margin: 0 0 6px 0; font-size: 11px; color: #aaa; font-weight: 700; border-bottom: 1px solid #f0f0f0; padding-bottom: 4px;}


.join-button {
    font-family: 'ZheaFont', sans-serif;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    padding: 20px 35px;
    border-radius: 18px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden; 
    
    background: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #b3513a;
    box-shadow: 0 8px 20px rgba(252, 182, 159, 0.3);
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

.join-button span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%), 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    mix-blend-mode: overlay; 
}

.btn-wrapper:hover .join-button {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(252, 182, 159, 0.45);
}

.btn-wrapper:hover .join-button::before {
    opacity: 1;
}

.join-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(252, 182, 159, 0.2);
}

.icp-footer {
    position: fixed;
    bottom: 5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 5;
    text-align: center;

    font-size: 10px;
    color: rgba(60, 80, 100, 0.6); 

    padding: 2px 8px;
    border-radius: 6px;

    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    border: 1px solid rgba(255, 255, 255, 0.25);
    
    box-shadow: none;
    
    transition: all 0.3s;
}

.icp-footer:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: rgba(60, 80, 100, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .status-badges { right: 10px; top: -10px; }
    .badge { padding: 3px 7px; font-size: 10px; }
    .join-button { padding: 18px 20px; font-size: 1.1em; }
    .badge-server-name { width: 100px; } 
    .join-button::before { display: none; }
}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-box { background: #fff; padding: 30px; border-radius: 15px; text-align: center; width: 300px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: popIn 0.4s; }
.modal-close-btn { background: #ff7e5f; color: #fff; border: none; padding: 10px 20px; border-radius: 25px; cursor: pointer; font-weight: bold; }

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
}

.left-panel {
    flex: 5;
    min-width: 0;
}

.right-panel {
    flex: 4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.btn-wrapper {
    width: 100%;
}

.right-panel .btn-wrapper:first-child {
    margin-top: 0;
}

@media (max-width: 850px) {
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        flex: none;
    }
    
    .right-panel .btn-wrapper:first-child {
        margin-top: 15px;
    }
    
    .container {
        padding: 30px 20px;
    }
}