@font-face {
  font-family: "Anonymous Pro";
  src: url("/css/anonymous-pro.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: "Anonymous Pro", monospace;
    overflow: auto;
}

body {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(15, 15, 15, 1));
    color: #fff;
}

#three-bg.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(15, 15, 15, 1));
    background-repeat: no-repeat;
    background-size: cover;
}

.content {
    max-width: 85%;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    color: #ff3333;
    text-align: center;
    margin-bottom: 40px;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.category {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 22px 18px 18px 18px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    border: 1.2px solid rgba(255,255,255,0.06);
}

.category:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px 0 #ff333355;
}

h2 {
    color: #ff3333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.subcategories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subcategory {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease-in-out;
    margin-bottom: 10px;
}

.subcategory:hover {
    background-color: rgba(255, 51, 51, 0.1);
}

.subcategory h3 {
    color: #ff3333;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

#playerStats, #shipStats, #wakatime-stats {
    padding: 0px;
}

#playerStats p, #shipStats p, #wakatime-stats p {
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

p {
    color: #c9c9c9;
}

a {
    font-weight: bold;
    text-decoration: underline;
    color: #ff3333;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.back-link {
    font-size: 1.2rem;
    text-decoration: none;
    color: #ff3333;
    padding: 10px 20px;
    border: 2px solid #ff3333;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s ease-in-out;
}

.back-link:hover {
    background: #ff3333;
    color: #0f0f0f;
}

@media (max-width: 768px) {
    .content {
        padding: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .category {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subcategory h3 {
        font-size: 1.2rem;
    }
    #seaOfThievesStats, #wakatime-stats {
        padding: 15px;
    }
    
    #playerStats, #shipStats, #wakatime-stats {
        padding: 12px;
    }
    
    #playerStats p, #shipStats p, #wakatime-stats p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .category {
        padding: 12px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .subcategory h3 {
        font-size: 1rem;
    }
    #seaOfThievesStats, #wakatime-stats {
        padding: 10px;
    }
    
    #playerStats, #shipStats, #wakatime-stats {
        padding: 10px;
    }
    
    #playerStats p, #shipStats p, #wakatime-stats p {
        font-size: 0.9rem;
    }
}

.main-card {
    min-height: 80vh;
    min-width: 340px;
    max-width: 900px;
    margin: 60px auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    border-radius: 24px;
    padding: 40px 32px 24px 32px;
    background: none;
}
.glass {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(12px) saturate(120%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
}
.explore-card {
    max-width: 950px;
    width: 95vw;
}
.site-title {
    font-size: 2.5rem;
    color: #ff3333;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.2em;
    text-shadow: 0 2px 12px #ff333355, 0 1px 0 #000;
    animation: fadeIn 1.2s;
    text-align: center;
}
.explore-title {
    font-size: 2.7rem;
    margin-bottom: 0.7em;
}
.avatar-glow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2em;
    width: 90px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
}
.avatar-glow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff3333 0%, #ff333300 70%);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
    animation: avatarPulse 2s infinite alternate;
    transition: opacity 0.2s;
}
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2.5px solid #ff3333;
    background: #18181b;
    object-fit: cover;
    box-shadow: 0 2px 16px #ff333355;
    position: relative;
    z-index: 1;
}
@keyframes avatarPulse {
    0% { box-shadow: 0 0 0 0 #ff3333, 0 0 32px 8px #ff333355; }
    100% { box-shadow: 0 0 0 8px #ff333322, 0 0 48px 16px #ff333355; }
}
.footer {
    width: 100%;
    margin-top: 2.5em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
}
.footer-socials {
    display: flex;
    gap: 1.2em;
    justify-content: center;
    margin-bottom: 0.2em;
}
.footer-icon {
    width: 28px;
    height: 28px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    filter: drop-shadow(0 1px 4px #ff333355);
}
.footer-icon:hover {
    opacity: 1;
    transform: scale(1.12);
}
.back-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: #ff3333;
    padding: 8px 18px;
    border: 2px solid #ff3333;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5em;
}
.back-link:hover {
    background: #ff3333;
    color: #0f0f0f;
}
.copyright {
    font-size: 0.95rem;
    color: #c9c9c9;
    margin-top: 0.5em;
}
.explore-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: start;
    margin-bottom: 2em;
}
@media (max-width: 900px) {
    .main-card {
        padding: 24px 6vw 18px 6vw;
    }
    .explore-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 600px) {
    .main-card {
        padding: 16px 4vw 14px 4vw;
    }
    .site-title, .explore-title {
        font-size: 1.5rem;
    }
    .avatar {
        width: 48px;
        height: 48px;
    }
    .avatar-glow::before {
        width: 48px;
        height: 48px;}
    .category {
        padding: 16px 10px 14px 10px;
    }
    h2 {
        font-size: 1.1rem;
    }
    .subcategory h3 {
        font-size: 1rem;
    }
    .subcategory {
        padding: 12px 8px;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}