#popupContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}
.popup {
    min-width: 260px;
    background: rgba(30, 20, 45, 0.95);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: "Nunito", sans-serif;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateX(120%);
    display: flex;
    flex-direction: column;
    border-left: 5px solid #fff;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}
.popup-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}
.popup-desc {
    font-size: 15px;
    opacity: 0.9;
}
.popup.show {
    opacity: 1;
    transform: translateX(0);
}
.popup.quest  { border-color: #3498db; }
.popup.achievement { border-color: #f1c40f; }
.popup.levelup { border-color: #2ecc71; }

#levelContainer {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translateX(120px) translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 14px;
}
#levelBarBackground {
    width: 250px;
    height: 10px;
    background-color: #300430;
    border-radius: 5px;
    margin-top: 4px;
    overflow: hidden;
}
#levelBarFill {
    width: 0%;
    height: 100%;
    background-color: #fde400;
    border-radius: 5px;
    transition: width 0.3s ease;
}
#levelDisplay {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

body {
    background-color: #150d23;
    margin: 0;
    font-family: Arial, sans-serif;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #10001f;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    width: 60px;
    height: 100vh;
    background-color: #10001f;
    padding-top: 60px;
    overflow-x: hidden;
    transition: width 0.25s ease;
    z-index: 10;
}
.sidebar.open {
    width: 180px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    color: white;
    font-family: "Nunito", sans-serif;
}
.sidebar-item:hover {
    background-color: #30005e;
    border-radius: 8px;
}
.sidebar-icon {
    width: 24px;
    height: 24px;
    filter: invert(62%) sepia(13%) saturate(722%) hue-rotate(233deg) brightness(90%) contrast(86%);
    transform: translateY(-5%);
}
.sidebar-text {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    font-size: 16px;
}
.sidebar.open .sidebar-text {
    opacity: 1;
}
.menu-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.menu-icon div {
    width: 26px;
    height: 3px;
    background-color: #88719e;
    border-radius: 3px;
}

.center-box {
    background-color: #88719e;
    padding: 10px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    color: white;
    font-size: 16px;
}
.center-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.number {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    color: white;
    font-size: 16px;
}
.settings-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    cursor: pointer;
    filter: invert(62%) sepia(13%) saturate(722%) hue-rotate(233deg) brightness(90%) contrast(86%);
}
.rewards-icon {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-51%);
    width: 22px;
    cursor: pointer;
    filter: invert(62%) sepia(13%) saturate(722%) hue-rotate(233deg) brightness(90%) contrast(86%);
}
.profile-icon {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-51%);
    width: 22px;
    cursor: pointer;
    filter: invert(62%) sepia(13%) saturate(722%) hue-rotate(233deg) brightness(90%) contrast(86%);
}
.quests-icon {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-47%);
    width: 22px;
    cursor: pointer;
    filter: invert(62%) sepia(13%) saturate(722%) hue-rotate(233deg) brightness(90%) contrast(86%);
}
.wallet-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
}
.wallet-btn:hover {
    background-color: #28b863;
}
.cases-icon,
.home-icon,
.inventory-icon,
.trade-icon {
    filter: invert(62%) sepia(13%) saturate(722%) hue-rotate(233deg) brightness(90%) contrast(86%);
    transform: translateY(-5%);
    width: 24px;
}
.pattern-note {
    color: #f1c40f;
    font-weight: bold;
    margin-top: 4px;
    text-shadow: 0 0 6px #f1c40f;
}

.inventory-item div {
  margin-bottom: 2px;
}

.pattern-special {
  margin-top: 4px;
  font-size: 13px;
}

.inventory-item .price {
  margin-top: 6px;
  display: block;
}

#top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-family: "Nunito", sans-serif;
}

#site-title {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    letter-spacing: 1.4px;
    font-size: 24px;
    color: #ffffff;
    margin: 0;

    background: linear-gradient(90deg, #d9c2ff, #a680ff, #7c5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 12px rgba(140, 100, 255, 0.35);

    display: inline-block;

    margin-left: 15px;
    margin-right: 1400px; 

    text-decoration: none !important;   /* REMOVE underline */
    color: inherit !important;          /* REMOVE yellow override */

    pointer-events: none;
    user-select: none;
}



/* optional glow effect */
#site-title {
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
