@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 55%, #fbc2eb 100%);
    animation: bgmove 10s linear infinite alternate;
}

@keyframes bgmove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Funky, readable heading with solid color and contrast */
h1 {
    margin-bottom: 32px;
    font-size: 3.2rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #222;
    background: none;
    text-shadow: 2px 2px 0 #fff200, 0 0 8px #ff6b81;
}

h2 {
    margin-bottom: 20px;
    font-size: 2.1rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: #ff6b81;
    background: none;
    text-shadow: 1px 1px 0 #fff200, 0 0 6px #fad0c4;
    text-align: center;
}

/* GTA-style stats table */
.general-stats-table {
    width: 100%;
    max-width: 420px;
    margin: 2em auto 2em auto;
    background: linear-gradient(90deg, #222 80%, #444 100%);
    border-radius: 12px;
    box-shadow: 0 4px 24px #000a, 0 0 0 4px #fff20099;
    border: 3px solid #fff200;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #fff200;
    font-size: 1.15em;
    letter-spacing: 0.04em;
    overflow: hidden;
}
.general-stats-table th, .general-stats-table td {
    padding: 0.7em 1em;
    border-bottom: 2px solid #ff6b81;
    text-align: left;
    background: rgba(34,34,34,0.85);
}
.general-stats-table th {
    background: #222;
    color: #fff200;
    font-weight: 900;
    text-shadow: 1px 1px 0 #ff6b81, 0 0 6px #fad0c4;
}
.general-stats-table tr:last-child td {
    border-bottom: none;
}
.progress-bar {
    width: 100%;
    height: 1.2em;
    background: #444;
    border-radius: 6px;
    box-shadow: 0 2px 8px #000a;
    overflow: hidden;
    margin-top: 0.3em;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff200 0%, #ff6b81 100%);
    border-radius: 6px 0 0 6px;
    transition: width 0.5s;
    box-shadow: 0 0 8px #fff20088;
}
.progress-bar-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #222;
    font-weight: 900;
    font-size: 0.95em;
    text-shadow: 0 0 4px #fff;
}

.emoji-container {
    display: flex;
    gap: 64px;
    margin-bottom: 40px;
    justify-content: center;
    min-height: 7.5rem; /* Ensures space for emojis even when loading or error */
    align-items: flex-start;
}

.emoji {
    font-size: 6rem;
    cursor: pointer;
    transition: transform 0.18s, filter 0.18s;
    filter: drop-shadow(0 0 16px #fff200) drop-shadow(0 0 8px #ff6b81);
    border-radius: 50%;
    background: linear-gradient(135deg, #fff200 0%, #ff6b81 100%);
    box-shadow: 0 0 32px 0 #fbc2eb88, 0 0 8px 0 #fff20088;
    /* padding: 0.5em 0.7em; */
    border: 3px dashed #fff200;
    width: 14rem;
    height: 13.8rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.emoji:hover {
    transform: scale(1.25) rotate(-10deg);
    filter: drop-shadow(0 0 32px #fff200) drop-shadow(0 0 16px #ff6b81);
    background: linear-gradient(135deg, #ff6b81 0%, #fff200 100%);
    border: 3px solid #ff6b81;
}

.loading {
    font-size: 2rem;
    color: #fff200;
    text-shadow: 0 0 8px #ff6b81, 0 0 4px #fff;
    font-weight: bold;
    letter-spacing: 0.08em;
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.emoji-nav {
    width: 100%;
    text-align: center;
    margin: 1.2em 0 0.5em 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #ff6b81 10%, #fff200 50%, #43e97b 90%);
    border-radius: 1em;
    box-shadow: 0 2px 12px #fad0c488;
    padding: 0.5em 0.2em;
    display: flex;
    justify-content: center;
    gap: 1.2em;
    align-items: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.emoji-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0;
    padding: 0.3em 1.1em;
    border-radius: 0.7em;
    font-weight: 900;
    font-size: 1.08em;
    background: rgba(255,255,255,0.13);
    box-shadow: 0 1px 6px #fff20044;
    border: 2px solid #fff20044;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
    position: relative;
}

.emoji-nav a:hover {
    background: #fff200;
    color: #ff6b81;
    box-shadow: 0 2px 12px #ff6b8144, 0 0 0 2px #fff200;
    border: 2px solid #ff6b81;
}
.emoji-nav a.active {
    background: #ff6b81;
    color: #fff200;
    border: 2px solid #fff200;
    box-shadow: 0 2px 12px #fff20044;
}
@media (max-width: 600px) {
    .emoji-nav {
        font-size: 1em;
        margin: 0.7em 0 0.3em 0;
        padding: 0.3em 0.1em;
        gap: 0.5em;
        max-width: 98vw;
    }
    .emoji-nav a {
        margin: 0;
        padding: 0.18em 0.5em;
        font-size: 1em;
    }
    body {
        padding: 0 0.5em;
    }
    h1 {
        font-size: 2.1rem;
        margin-bottom: 20px;
        letter-spacing: 0.08em;
        text-align: center;
    }
    .emoji-container {
        flex-direction: column;
    }
    .loading {
        font-size: 1.2rem;
    }
}