/* ==========================================================================
   MooModding.io Launcher — rebuilt on the authentic MooMoo.io design system
   (see /MOOMOO_DESIGN_SYSTEM.md). Tokens, radii, solid "no-blur" shadows,
   Hammersmith One typography and the rgba(0,0,0,.25) HUD glass are 1:1 with
   the original 1.8.2 main.css.
   ========================================================================== */

:root {
    /* Surfaces */
    --moo-bg-void: #000;
    --moo-menu-dim: rgba(0, 0, 0, 0.5);
    --moo-hud-glass: rgba(0, 0, 0, 0.25);
    --moo-hud-glass-hover: rgba(50, 50, 50, 0.25);
    --moo-card: #fff;
    --moo-card-shadow: #c4c4c4;
    --moo-input-bg: #e5e3e3;

    /* Text */
    --moo-text-hud: #fff;
    --moo-text-card: #292929;
    --moo-text-input: #4a4a4a;
    --moo-text-muted: #a8a8a8;
    --moo-text-dim: rgba(255, 255, 255, 0.6);
    --moo-text-faint: rgba(255, 255, 255, 0.5);

    /* Accents */
    --moo-green: #7ee559;
    --moo-green-hover: #6fc94e;
    --moo-green-shadow: #5db53d;
    --moo-purple: #8c52ff;
    --moo-purple-hover: #7c40f0;
    --moo-purple-shadow: #6532cb;
    --moo-orange: #ff9f43;
    --moo-orange-hover: #f38d2b;
    --moo-orange-shadow: #d97d26;
    --moo-discord: #5865f2;
    --moo-discord-hover: #4752c4;
    --moo-success: #2ed573;
    --moo-danger: #ff4757;
    --moo-link: #a56dc8;
    --moo-link-hover: #795094;
    --moo-yt: #6eb3ef;
    --moo-join: #80eefc;

    /* World (canvas) */
    --moo-grass: #b6db66;
    --moo-outline: #525252;

    /* Metrics */
    --moo-radius: 4px;
    --moo-card-pad: 18px;
    --moo-edge: 20px;
    --moo-font: 'Hammersmith One', sans-serif;
}

/* ---------- Base (identical to original main.css) ---------- */
* {
    font-family: var(--moo-font);
    font-size: 12px;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html,
body {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--moo-bg-void);
}

/* In-game world floor: grass + the faint 4px grid the canvas draws */
body {
    background-color: var(--moo-grass);
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 2px, transparent 2px);
}

span {
    font-size: inherit;
}

::-webkit-input-placeholder {
    color: #cecece;
}

::-moz-placeholder {
    color: #cecece;
    opacity: 1;
}

a {
    color: var(--moo-link);
    text-decoration: none;
}

a:visited {
    color: var(--moo-link);
}

a:hover,
a:active {
    color: var(--moo-link-hover);
}

/* ---------- Top bar ---------- */
#youtuberOf {
    position: absolute;
    z-index: 999;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
}

#topRightBar {
    position: absolute;
    z-index: 20;
    top: 20px;
    right: var(--moo-edge);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.topBarBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: none;
    outline: none;
    border-radius: var(--moo-radius);
    background-color: var(--moo-hud-glass);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.topBarBtn:hover {
    background-color: var(--moo-hud-glass-hover);
}

.pulseBadge {
    background: var(--moo-danger);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: var(--moo-radius);
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.08);
    }
}

/* ---------- Live Game Background Canvas ---------- */
#gameCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ---------- Main menu (original #mainMenu / #menuContainer) ---------- */
#mainMenu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: var(--moo-menu-dim);
    overflow-y: auto;
    display: flex;
}

#menuContainer {
    width: 100%;
    margin: auto;
    padding: 30px 10px 40px;
    white-space: nowrap;
    text-align: center;
}

#gameName {
    font-size: min(88px, 11vh);
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Hammersmith One', sans-serif;
    font-weight: 900;
    line-height: 1;
    user-select: none;
    letter-spacing: -0.01em;
}

.logo-moo,
.logo-io {
    color: #fff;
    display: inline-block;
    text-shadow:
        0 1px 0 #c4c4c4, 0 2px 0 #c4c4c4, 0 3px 0 #c4c4c4,
        0 4px 0 #c4c4c4, 0 5px 0 #c4c4c4, 0 6px 0 #c4c4c4,
        0 7px 0 #c4c4c4;
}

.logo-mod-m,
.logo-mod-rest {
    display: inline-block;
    color: #4fc3f7;
    /* 10px centered stroke drawn behind the fill = 5px visible outer stroke */
    -webkit-text-stroke: 10px #525252;
    paint-order: stroke fill;
    stroke-linejoin: round;
}

.logo-gear-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.88em;
    height: 0.88em;
    margin: 0 0.02em;
    vertical-align: middle;
    flex-shrink: 0;
    /* Hammersmith One: cap-height center sits 0.05em above line-box center */
    transform: translateY(-0.05em);
}

.logo-gear-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
    transform-origin: 50% 50%;
    animation: logoGearSpin 8s linear infinite;
}

@keyframes logoGearSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#menuCardHolder {
    margin-top: 0;
    display: grid;
    grid-template-columns: 280px 320px 280px;
    justify-content: center;
    align-items: flex-start;
    column-gap: 36px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

#accountSideCard {
    grid-column: 1;
}

#clanSideCard {
    grid-column: 3;
}

/* ---------- Cards (original .menuCard) ---------- */
.menuCard {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    margin: 0;
    width: 300px;
    padding: 14px;
    background-color: var(--moo-card);
    box-shadow: 0px 7px var(--moo-card-shadow);
    border-radius: var(--moo-radius);
    overflow: visible;
    position: relative;
    box-sizing: border-box;
}

#centerMenuCol {
    grid-column: 2;
    position: relative;
    width: 320px;
    max-width: 95vw;
    flex-shrink: 0;
    box-sizing: border-box;
    z-index: 30;
}

/* ---------- Side Menu Toggle Buttons (Left & Right) ---------- */
.cardSideToggleBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 84px;
    background-color: var(--moo-card);
    box-shadow: 0 4px var(--moo-card-shadow);
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.15s ease, opacity 0.1s ease;
}

.cardSideToggleBtn:hover {
    background-color: #f7f7f7;
}

.cardSideToggleBtn:active {
    opacity: 0.85;
}

.cardSideToggleBtn svg {
    width: 14px;
    height: 14px;
    fill: #555555;
    transition: fill 0.15s ease;
    pointer-events: none;
}

.cardSideToggleBtn:hover svg {
    fill: #111111;
}

.cardSideToggleBtn.leftToggle {
    left: -22px;
    border-radius: 8px 0 0 8px;
}

.cardSideToggleBtn.rightToggle {
    right: -22px;
    border-radius: 0 8px 8px 0;
}

#centerMenuCol .compactCard {
    width: 100% !important;
    margin: 0;
    box-sizing: border-box;
    border-radius: var(--moo-radius);
}

.compactCard {
    width: 320px !important;
    max-width: 95vw;
}

/* ==========================================================================
   Side Menu Cards (Left Account Card & Right Clan Card)
   ========================================================================== */

.sideMenuCard {
    width: 280px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px #c4c4c4;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sideCardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.sideCardTitle {
    font-family: var(--moo-font);
    font-size: 19px;
    font-weight: bold;
    color: #292929;
    letter-spacing: 0.5px;
}

.sideCardBadge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.badgeGuest {
    background: #eaeaea;
    color: #777777;
}

.badgeVerified {
    background: rgba(126, 229, 89, 0.2);
    color: #388e3c;
    border: 1px solid #7ee559;
}

.badgeNeutral {
    background: #eaeaea;
    color: #888888;
}

/* Identity row */
.sideIdentityRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sideAccountAvatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #525252;
    background: #bf8f54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sideAccountAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sideIdentityMeta {
    flex: 1 1 0;
    min-width: 0;
}

.sideUsernameRow {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sideUsername {
    font-family: var(--moo-font);
    font-size: 18px;
    font-weight: bold;
    color: #292929;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sideClanTag {
    background: rgba(126, 229, 89, 0.2);
    color: #388e3c;
    border: 1px solid #7ee559;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.sideSubtext {
    font-size: 11.5px;
    color: #888888;
    margin-top: 2px;
}

/* Stats 4-Grid */
.sideStatsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.sideStatBox {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 6px 8px;
    text-align: center;
}

.sideStatLabel {
    display: block;
    font-size: 9.5px;
    font-weight: bold;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sideStatVal {
    font-family: var(--moo-font);
    font-size: 16px;
    font-weight: bold;
    color: #292929;
}

/* Bio Section */
.sideBioSection {
    margin-bottom: 12px;
}

.sideBioLabel {
    display: block;
    font-size: 10.5px;
    font-weight: bold;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.sideBioBox {
    font-size: 12px;
    line-height: 1.4;
    color: #555555;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 8px 10px;
    min-height: 48px;
    max-height: 70px;
    overflow-y: auto;
    word-break: break-word;
}

.sideActionBottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sideActionBtn {
    width: 100%;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

/* Clan Specific */
.sideClanHeaderBox {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1.5px solid #ececec;
    box-sizing: border-box;
    overflow: hidden;
}

.sideClanTagBadge {
    background: #7ee559;
    color: #fff;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sideInClanTitle {
    font-family: var(--moo-font);
    font-size: 14.5px;
    font-weight: bold;
    color: #292929;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.sideRoleBadge {
    font-size: 9.5px;
    font-weight: bold;
    text-transform: uppercase;
    background: #eaeaea;
    color: #555;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.clanMemberRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 12px;
}

.clanMemberName {
    font-weight: bold;
    color: #292929;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.clanMemberName:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.clanMemberKills {
    color: #777;
    font-size: 11px;
    font-weight: bold;
}

.clanKickBtn {
    background: #e05353;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
}

.clanItemRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 12px;
}

.clanItemTag {
    background: #7ee559;
    color: #fff;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
}

.clanItemName {
    font-weight: bold;
    color: #292929;
    margin-left: 4px;
}

.clanJoinBtn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.btnGrey,
a.btnGrey,
a.btnGrey:link,
a.btnGrey:visited,
a.btnGrey:hover,
a.btnGrey:active,
#sideAccountProfileLink,
#sideAccountProfileLink:link,
#sideAccountProfileLink:visited,
#sideAccountProfileLink:hover,
#sideAccountProfileLink:active,
#sideAccountLogoutBtn {
    color: #ffffff !important;
}

.sideLeaveBtn {
    width: 100%;
    background-color: #e05353;
    box-shadow: 0 3px #b83b3b;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 7px 0;
    font-family: var(--moo-font);
    font-size: 12.5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
    outline: none;
    box-sizing: border-box;
}

.sideLeaveBtn:hover {
    background-color: #eb5959;
}

.sideLeaveBtn:active {
    transform: translateY(2px);
    box-shadow: 0 1px #b83b3b;
}

@media (max-width: 960px) {
    .cardSideToggleBtn {
        display: none !important;
    }

    #menuCardHolder {
        flex-direction: column;
        align-items: center;
    }

    .sideMenuCard {
        width: 320px;
    }

    #centerMenuCol {
        order: 1;
        width: 320px;
    }

    #setupCard,
    #leaderboardDialogCard,
    #settingsDialogCard,
    #howToDialogCard {
        order: 1;
    }

    #accountSideCard {
        order: 2;
    }

    #clanSideCard {
        order: 3;
    }
}

.menuHeader {
    font-size: 20px;
    color: var(--moo-text-card);
    margin-bottom: 5px;
    text-align: left;
}

.menuText {
    font-size: 18px;
    color: var(--moo-text-muted);
    margin-bottom: 10px;
}

.menuSubText {
    font-size: 18px;
    color: var(--moo-text-muted);
    margin-bottom: 10px;
}

/* ---------- Form fields ---------- */
.compactField {
    margin-bottom: 6px;
}

.fieldLabel {
    display: block;
    font-size: 13px;
    color: var(--moo-text-muted);
    margin-bottom: 3px;
}

.menuSelect,
.compactSelect {
    display: block;
    width: 100%;
    height: auto;
    padding: 4px 6px;
    margin-bottom: 0;
    border: none;
    outline: none;
    border-radius: var(--moo-radius);
    background-color: var(--moo-input-bg);
    color: var(--moo-text-input);
    font-size: 16px;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
}

.menuSelect option {
    font-size: 15px;
}

.menuSelect:focus {
    background-color: #dcdada;
}

/* ---------- Buttons (original .menuButton) ---------- */
.menuButton {
    display: block;
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: var(--moo-radius);
    background-color: var(--moo-green);
    color: #fff;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.menuButton:hover {
    background-color: var(--moo-green-hover);
    color: #fff;
}

.menuButton span {
    font-size: inherit;
}

.enterGameBtn {
    font-size: 20px !important;
    padding: 4px !important;
}

.menuButton.discordBtn {
    background-color: var(--moo-discord);
}

.menuButton.discordBtn:hover {
    background-color: var(--moo-discord-hover);
}

.menuButton.modBtn {
    background-color: var(--moo-purple);
}

.menuButton.modBtn:hover {
    background-color: var(--moo-purple-hover);
}

.menuButton.textPackBtn {
    background-color: var(--moo-orange);
}

.menuButton.textPackBtn:hover {
    background-color: var(--moo-orange-hover);
}

.playActionRow {
    margin: 10px 0 8px;
}

.compactFooterRow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.footerDivider {
    color: var(--moo-text-muted);
    font-size: 14px;
}

.footerLink,
.footerLinkBtn {
    background: none;
    border: none;
    padding: 0;
    color: var(--moo-link);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.footerLink:hover,
.footerLinkBtn:hover {
    color: var(--moo-link-hover);
}

.badgeOrange {
    background: var(--moo-orange);
    color: #fff;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: var(--moo-radius);
}

/* ---------- Bottom link bars (original #linksContainer1/2) ---------- */
#linksContainer1 {
    position: absolute;
    z-index: 20;
    bottom: 0;
    left: 0;
    padding: 8px;
    background-color: #fff;
    font-size: 16px;
    border-radius: 0 4px 0 0;
}

#linksContainer1.hubDiscordBar {
    position: absolute;
    z-index: 25;
    bottom: 14px;
    left: 14px;
    padding: 0;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 0;
}

.mooDiscordBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--moo-font);
    font-size: 15px;
    font-weight: 900 !important;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease, filter 0.15s ease;
    border: none !important;
    outline: none !important;
    box-sizing: border-box;
}

.mooDiscordBtn,
.mooDiscordBtn *,
.mooDiscordBtn span,
#linksContainer1.hubDiscordBar a,
#linksContainer1.hubDiscordBar span {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: none !important;
}

.mooDiscordOfficial {
    background-color: #5865F2 !important;
    box-shadow: 0 4px 0 #3c45a5 !important;
    border: none !important;
}

.mooDiscordOfficial:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.mooDiscordOfficial:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3c45a5 !important;
}

.mooDiscordPartner {
    background-color: #2b2d31 !important;
    box-shadow: 0 4px 0 #18191c !important;
    padding: 8px 14px;
    border: none !important;
}

.mooDiscordPartner span {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    border: none !important;
}

.mooDiscordPartner:hover {
    background-color: #383a40 !important;
    transform: translateY(-1px);
}

.mooDiscordPartner:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #18191c !important;
}

.mooPartnerWrap {
    position: relative;
    display: inline-flex;
}

.mooPartnerTooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: 270px;
    background-color: var(--moo-card, #ffffff);
    border: 1px solid #e2e4e9;
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0px 6px var(--moo-card-shadow, #c5c5c5), 0 10px 24px rgba(0, 0, 0, 0.22);
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 40;
}

.mooPartnerWrap:hover .mooPartnerTooltip {
    opacity: 1;
    transform: translateY(0);
}

.mooPartnerTooltipTitle {
    color: #292929;
    font-weight: 800;
    font-size: 13.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mooPartnerTooltipTitle::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #7ee559;
    box-shadow: 0 1px 0 #50a832;
    flex-shrink: 0;
}

.mooPartnerTooltipMeta {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    border-top: 1px solid #eceef2;
    padding-top: 6px;
}

.mooDiscordIcon {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
}

#linksContainer2 {
    position: absolute;
    z-index: 25;
    bottom: 14px;
    right: 14px;
    padding: 0;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    box-shadow: none !important;
    user-select: none;
}

.mooAffiliationDisclaimer {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    pointer-events: none;
    z-index: 20;
    letter-spacing: 0.15px;
    font-family: var(--moo-font);
}

.footerBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 4px;
    font-family: var(--moo-font);
    font-size: 13.5px !important;
    font-weight: 900 !important;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease, filter 0.15s ease;
    border: none !important;
    outline: none !important;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow: 0 4px 0 #c4c4c4;
    color: #292929 !important;
    letter-spacing: 0.3px;
}

.footerBtn:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.footerBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c4c4c4;
}

#footerDocLink.footerBtn {
    background-color: #7ee559;
    box-shadow: 0 4px 0 #5db53d;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#footerDocLink.footerBtn:hover {
    filter: brightness(1.08);
}

#footerDocLink.footerBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5db53d;
}

/* ---------- Policies Modal Cards & Layout ---------- */
.policiesModalBox {
    width: 480px;
    max-width: 94vw;
}

.policyItemCard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.policyItemCard:hover {
    background: #ffffff;
    border-color: #7ee559;
    box-shadow: 0 3px 10px rgba(126, 229, 89, 0.18);
    transform: translateY(-1px);
}

.policyItemIcon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #edf2f7;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.policyItemCard:hover .policyItemIcon {
    background: #7ee559;
    color: #ffffff;
}

.policyItemInfo {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.policyItemTitle {
    font-size: 13.5px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 2px;
}

.policyItemDesc {
    font-size: 11px;
    color: #718096;
    line-height: 1.35;
}

.policyItemArrow {
    font-size: 15px;
    color: #a0aec0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.policyItemCard:hover .policyItemArrow {
    color: #7ee559;
    transform: translateX(3px);
}

/* ---------- How To Play Compact Commands View ---------- */
.compactCmdItem {
    padding: 6px 9px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 5px;
    text-align: left;
}

.compactCmdSyntax {
    font-size: 11.5px;
    font-weight: bold;
    color: #2b354f;
    margin-bottom: 2px;
}

.compactCmdSyntax code {
    background: #e2e8f0;
    padding: 1px 4px;
    border-radius: 3px;
    color: #1a202c;
    font-family: monospace;
    font-size: 11px;
}

.compactCmdDesc {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.35;
}

/* ---------- Bottom Right Notice Box (Above Links) ---------- */
.bottomRightNotice {
    position: fixed;
    z-index: 9999 !important;
    bottom: 78px;
    right: 14px;
    width: 360px;
    max-width: calc(100vw - 28px);
    padding: 8px 12px;
    background: var(--moo-hud-glass);
    border: 1px solid rgba(126, 229, 89, 0.35);
    border-radius: var(--moo-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: left;
    box-sizing: border-box;
    font-family: var(--moo-font);
    display: flex;
    flex-direction: column;
    gap: 4px;
    white-space: normal !important;
    pointer-events: auto !important;
}

.bottomRightNotice button,
.bottomRightNotice .noticeBtn,
.bottomRightNotice .noticeCloseBtn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.bottomRightNotice.isDismissed {
    display: none !important;
}

.bottomRightNotice .noticeHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0;
}

.bottomRightNotice .noticeTitle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottomRightNotice .noticeBadge {
    background: #7ee559;
    color: #000;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.bottomRightNotice .noticeText {
    font-size: 12.5px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.3px;
}

.bottomRightNotice .noticeCloseBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}

.bottomRightNotice .noticeCloseBtn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #fff;
}

.bottomRightNotice .noticeContentRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.bottomRightNotice .noticeBody {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #cbd5e1;
    flex: 1;
    white-space: normal !important;
    word-break: normal;
}

.bottomRightNotice .noticeBody strong {
    font-size: inherit;
    color: #7ee559;
    font-weight: bold;
}

.bottomRightNotice .noticeBtn {
    flex-shrink: 0;
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    background: #7ee559;
    color: #000;
    font-size: 10.5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--moo-font);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px #5cb85c;
    transition: background-color 0.15s ease, filter 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.bottomRightNotice .noticeBtn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.bottomRightNotice .noticeBtn span {
    font-size: inherit;
}

.bottomRightNotice .noticeBtnDismiss {
    background: #475569 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 2px #334155 !important;
}

.bottomRightNotice .noticeBtnDismiss:hover {
    background: #64748b !important;
    filter: none !important;
}

@media only screen and (max-width: 896px) {
    .bottomRightNotice {
        bottom: 12px;
        right: 12px;
    }
}

.discordNoticeBtn {
    background-color: var(--moo-discord);
}

.discordNoticeBtn:hover {
    background-color: var(--moo-discord-hover);
    color: #fff;
}

.importNoticeBtn {
    background-color: var(--moo-orange);
}

.importNoticeBtn:hover {
    background-color: var(--moo-orange-hover);
}

/* ---------- Modals (original .menuCard on 0.5 dim layer) ---------- */
.modalOverlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--moo-menu-dim);
}

.modalBox {
    width: 480px;
    max-width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    margin: 0;
}

.modalClose {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 32px;
    line-height: 1;
    color: var(--moo-text-muted);
    cursor: pointer;
}

.modalClose:hover {
    color: var(--moo-danger);
}

.modalBadgeRow {
    margin-bottom: 10px;
}

.comingSoonBadge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--moo-radius);
    background: var(--moo-success);
    color: #fff;
    font-size: 13px;
}

.modalContent p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--moo-text-muted);
    line-height: 1.25;
}

.modalContent p strong {
    font-size: inherit;
    color: var(--moo-text-card);
    font-weight: normal;
}

/* ---------- Custom Mods List ---------- */
.modGrid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-right: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.modCardItem,
.modCard {
    padding: 8px 10px;
    text-align: left;
    border-radius: var(--moo-radius);
    background-color: var(--moo-input-bg);
    box-shadow: inset 0 -3px 0 #d0cece;
    border: 2px solid transparent;
}

.modCardItem:hover,
.modCard:hover {
    border-color: var(--moo-purple);
}

.modCardItem.active,
.modCard.activeModCard {
    border-color: var(--moo-success);
}

.modCardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.modCardTitle {
    font-size: 16px;
    color: var(--moo-text-card);
}

.modCardAuthor,
.modAuthor {
    font-size: 12px;
    color: var(--moo-text-muted);
}

.modCardDesc {
    font-size: 13px;
    color: var(--moo-text-input);
    line-height: 1.2;
    margin-bottom: 6px;
}

.modCardFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.modSelectBtn {
    padding: 4px 12px;
    border: none;
    border-radius: var(--moo-radius);
    background: var(--moo-purple);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.modSelectBtn:hover {
    background: var(--moo-purple-hover);
}

.modSelectBtn.active {
    background: var(--moo-green);
}

.modBadge {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 4px;
    border-radius: var(--moo-radius);
    background: var(--moo-orange);
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
}

.modTag {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 4px;
    border-radius: var(--moo-radius);
    color: #fff;
    font-size: 12px;
}

.modTagStart {
    background: var(--moo-success);
}

.modTagEnd {
    background: #3742fa;
}

.modTagVersion {
    background: var(--moo-danger);
}

.modTagReq {
    background: #e67e22;
}

.modInfoBox {
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: var(--moo-radius);
    background: var(--moo-input-bg);
    color: var(--moo-text-input);
    font-size: 14px;
    line-height: 1.3;
}

/* Quick pills / version list (kept for launcher.js templates) */
.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--moo-radius);
    background: var(--moo-input-bg);
    color: var(--moo-text-input);
    font-size: 16px;
    cursor: pointer;
}

.pill:hover {
    background: #d8d6d6;
}

.pill.active {
    background: var(--moo-green);
    color: #fff;
}

#versionList {
    max-height: 165px;
    overflow-y: auto;
    margin-bottom: 10px;
    border-radius: var(--moo-radius);
    background: var(--moo-input-bg);
}

.versionItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    color: var(--moo-text-input);
    font-size: 15px;
    cursor: pointer;
}

.versionItem:hover {
    background: #d8d6d6;
}

.versionItem.selected {
    background: var(--moo-green);
    color: #fff;
}

.versionItem .vDate {
    font-size: 14px;
    opacity: 0.85;
}

#changelogBox {
    height: 185px;
    margin-bottom: 10px;
    padding: 10px;
    overflow-y: auto;
    border-radius: var(--moo-radius);
    background: var(--moo-input-bg);
    color: var(--moo-text-input);
    font-family: monospace, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    text-align: left;
}

.fieldActionBtn {
    background: none;
    border: none;
    color: var(--moo-link);
    font-size: 16px;
    cursor: pointer;
}

.fieldActionBtn:hover {
    color: var(--moo-link-hover);
}

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--moo-card-shadow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ---------- Responsive (original breakpoints) ---------- */
@media only screen and (max-width: 896px) {
    #gameName {
        font-size: 56px;
    }

    .logo-moo,
    .logo-io {
        text-shadow: 0 1px 0 #c4c4c4, 0 2px 0 #c4c4c4, 0 3px 0 #c4c4c4, 0 4px 0 #c4c4c4, 0 5px 0 #c4c4c4;
    }

    #menuContainer {
        padding-top: 130px;
    }

    .compactCard {
        width: 260px !important;
    }

    #linksContainer1,
    #linksContainer2 {
        display: none;
    }

    #youtuberOf {
        top: 8px;
        left: 8px;
        font-size: 20px;
    }

    #topRightBar {
        top: 8px;
        right: 8px;
        gap: 8px;
    }

    #partyButton {
        font-size: 20px;
    }

    .topBarBtn {
        font-size: 16px;
    }

    .topLeftNotice {
        top: 44px;
        left: 8px;
        width: 260px;
    }
}

@media only screen and (max-width: 480px) {
    #gameName {
        font-size: min(44px, 11vw);
    }


    .topLeftNotice {
        position: relative;
        top: auto;
        left: auto;
        margin: 90px auto 0;
        width: calc(100% - 20px);
    }

    #menuContainer {
        padding-top: 10px;
    }
}

/* ---------- Helper classes (replace former inline styles) ---------- */
.badgeActive {
    background: var(--moo-success) !important;
}

.menuLinkAccent,
.menuLinkAccent:visited {
    color: var(--moo-orange);
}

.menuLinkAccent:hover {
    color: var(--moo-orange-hover);
}

.menuButton.btnInline {
    display: inline-block;
    width: auto;
    padding: 5px 12px;
    font-size: 15px;
}

.menuButton.btnGrey {
    background-color: #747d8c;
}

.menuButton.btnGrey:hover {
    background-color: #636b78;
}

.menuButton.btnBlue {
    background-color: #3867d6;
}

.menuButton.btnBlue:hover {
    background-color: #2f58bb;
}

.modalActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ---------- Featured Shoutout ---------- */
#youtuberOf {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.3px;
}

#featuredShoutout,
#featuredYoutube,
#featuredModder {
    display: block;
    margin: 6px 0 0 0;
    min-height: 20px;
}

#youtuberOf .ytLink {
    color: #6eb3ef;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.4s ease-in-out, color 0.2s ease;
}

#youtuberOf .ytLink.fade-out {
    opacity: 0;
}

#youtuberOf .ytLink:hover {
    color: #5c96c9;
}

#youtuberOf .featuredSoon {
    color: var(--moo-text-dim);
    font-size: 18px;
}

@media only screen and (max-width: 896px) {
    #youtuberOf {
        display: none;
    }

    .topLeftNotice {
        top: 44px;
    }
}

.mooIcon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.2em
}

[data-icon] {
    display: inline-flex;
    align-items: center
}

button .mooIcon,
a .mooIcon,
span .mooIcon {
    margin-right: 2px
}

/* ==========================================================================
   MooModding Auth & Profile Glassmorphism Design System
   ========================================================================== */

.authProfileGroup {
    position: relative;
    display: inline-block;
}

.topBarBtn.authBtn {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--moo-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.topBarBtn.authBtn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--moo-green);
    transform: translateY(-1px);
}

.authBtnIcon {
    font-size: 14px;
}

/* User Profile Dropdown */
.profileDropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--moo-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 4px 0 #111;
    padding: 14px;
    z-index: 1001;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.profileDropdownHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.userAvatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    border: 2px solid var(--moo-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.userAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.userInfo {
    overflow: hidden;
}

.userName {
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.userClan {
    font-size: 11px;
    color: var(--moo-green);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.profileStatsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px;
    border-radius: var(--moo-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.statItem {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.statLabel {
    font-size: 10px;
    color: var(--moo-text-muted);
    letter-spacing: 0.5px;
}

.statValue {
    font-size: 16px;
    color: #fff;
    margin-top: 2px;
}

.profileDropdownActions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.profileActionBtn {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: var(--moo-radius);
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.profileActionBtn.viewProfileBtn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.profileActionBtn.viewProfileBtn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.profileActionBtn.logoutBtn {
    background: rgba(255, 71, 87, 0.2);
    color: #ff6b81;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.profileActionBtn.logoutBtn:hover {
    background: rgba(255, 71, 87, 0.4);
    color: #fff;
}

/* Auth Modal Specifics */
.authModalBox {
    max-width: 420px;
    width: 90%;
    padding: 24px;
}

.authTabsRow {
    display: flex;
    border-bottom: 2px solid var(--moo-input-bg);
    margin-bottom: 20px;
}

.authTabBtn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    color: var(--moo-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.authTabBtn:hover {
    color: var(--moo-text-card);
}

.authTabBtn.active {
    color: var(--moo-green-shadow);
    border-bottom-color: var(--moo-green);
}

.authForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.authField {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.authField label {
    font-size: 11px;
    color: var(--moo-text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.authInput {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: var(--moo-input-bg);
    border: 1px solid #d4d4d4;
    border-radius: var(--moo-radius);
    color: var(--moo-text-card);
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 -2px 0 #cecece;
    transition: border-color 0.2s ease;
}

.authInput:focus {
    border-color: var(--moo-green-shadow);
    background: #fff;
}

.authRememberRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--moo-text-card);
}

.checkboxLabel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.authSubmitBtn {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    font-size: 16px !important;
}

.authGuestNotice {
    font-size: 11px;
    color: var(--moo-text-muted);
    text-align: center;
    line-height: 1.4;
    margin-top: 4px;
}

.authGuestNotice strong {
    color: var(--moo-text-card);
}

.authAlert {
    padding: 10px 12px;
    border-radius: var(--moo-radius);
    font-size: 12px;
    text-align: left;
    line-height: 1.4;
}

.authAlert.error {
    background: #ffe0e3;
    color: #d63031;
    border: 1px solid #ff7675;
}

.authAlert.success {
    background: #e8f8ec;
    color: #27ae60;
    border: 1px solid #2ecc71;
}

/* Legal Compliance & Consent UI */
.legalConsentBox {
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 10px 12px;
    background: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: var(--moo-radius);
    text-align: left;
}

.legalCheckboxLabel {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--moo-text-card);
    cursor: pointer;
    user-select: none;
}

.legalCheckboxLabel input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--moo-green-primary);
}

.legalNoticeText {
    margin-top: 6px;
    padding-left: 21px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--moo-text-muted);
}

.legalLink {
    color: #2b78e4;
    text-decoration: underline;
    font-weight: 500;
}

.legalLink:hover {
    color: #1a5bb8;
}

.legalGateOverlay {
    z-index: 100000 !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(6px);
}

.legalGateBox {
    max-width: 520px !important;
    width: 90% !important;
    padding: 24px !important;
}

.legalGateContent {
    font-size: 13px;
    line-height: 1.6;
    color: var(--moo-text-card);
    text-align: left;
}

.legalGateContent p {
    margin-bottom: 10px;
}

/* ==========================================================================
/* ==========================================================================
   Corner Leaderboard Widget (Authentic MooMoo Design System - Image 1)
   ========================================================================== */

.cornerLeaderboard.mooLeaderboardCard {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 290px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--moo-radius);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
    z-index: 990;
    padding: 12px 14px;
    color: #fff;
    font-family: var(--moo-font);
    text-align: left;
    user-select: none;
    transition: all 0.2s ease;
}

.mooLeaderboardHeader {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.lbTitleGroup {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lbTitleText {
    font-family: var(--moo-font);
    font-size: 26px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 2px 0 #000;
    letter-spacing: 0.5px;
}

.lbChartIcon {
    font-size: 20px;
}

/* ==========================================================================
   MooMoo Leaderboard Dialog Card (Image 3)
   ========================================================================== */
#leaderboardDialogCard {
    width: 330px !important;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px #c4c4c4;
    padding: 16px 18px 14px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: left;
    animation: dialogIn 0.2s ease-out;
}

.viewHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 10px -4px;
    color: #292929;
}

.viewBack {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #4a4a4a;
    background-color: #ececec;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.1s ease;
}

.viewBack:hover {
    color: #292929;
    background-color: #dedede;
    transform: scale(1.05);
}

.viewHeaderTitle {
    font-size: 23px;
    font-weight: bold;
    font-family: var(--moo-font);
    color: #292929;
}

.segTabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 5px;
    border-radius: 8px;
    background-color: #ececec;
}

.segTabs a {
    flex: 1 1 0;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 14.5px;
    text-align: center;
    color: #5a5a5a;
    cursor: pointer;
    font-family: var(--moo-font);
    font-weight: 600;
    text-decoration: none;
    user-select: none;
    transition: all 0.12s ease;
}

.segTabs a:hover {
    background-color: #dedede;
}

.segTabs a.active {
    background-color: #6cc24a;
    color: #fff;
    font-weight: bold;
}

.topTitle {
    margin: 8px 0 3px;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #a8a8a8;
    font-family: var(--moo-font);
    font-weight: bold;
}

.viewBody {
    max-height: 290px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
    padding-right: 4px;
}

.viewBody::-webkit-scrollbar {
    width: 4px;
}

.viewBody::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 2px;
}

.topPlayer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #a8a8a8;
    padding: 3px 0;
    font-family: var(--moo-font);
}

.topPlayer .topName {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #292929;
    font-weight: bold;
}

.topRankNum {
    font-size: 15px;
    font-weight: bold;
    color: #292929;
    min-width: 20px;
}

.topCrown {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

.topPlayer .topClan {
    font-size: 13.5px;
    color: #b8860b;
    font-weight: bold;
}

.topPlayer .topPlayerName {
    color: #292929;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topPlayer .topKills {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #a8a8a8;
    font-weight: bold;
    font-size: 15px;
}

.topEmpty,
.lbLoading {
    text-align: center;
    padding: 24px 0;
    color: #a8a8a8;
    font-size: 14px;
    font-family: var(--moo-font);
}

/* ==========================================================================
   Main Setup Card Authentic MooMoo Layout (Image 2)
   ========================================================================== */

.compactCard#setupCard {
    width: 320px !important;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px #c4c4c4;
    padding: 16px 18px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Row 1: Player Skin Circle + Name Input */
.mooPlayerRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.skinColorPreview {
    position: relative;
    flex-shrink: 0;
}

.skinCircle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #525252;
    background-color: #bf8f54;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.1s ease, border-radius 0.15s ease;
}

.skinCircle:hover {
    transform: scale(1.05);
}

.skinPickerDropdown {
    position: absolute;
    top: 52px;
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 4px #c4c4c4;
    padding: 10px;
    z-index: 9999;
    width: 184px;
    box-sizing: border-box;
}

.skinColorsGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.skinColorItem {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #525252;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.skinColorItem:hover,
.skinColorItem.activeSkin {
    border-radius: 6px;
    transform: scale(1.18);
}

.mooNameInput {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    height: 44px;
    background: #e5e3e3;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 0 12px;
    font-family: var(--moo-font);
    font-size: 19px;
    color: #4A4A4A;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.mooNameInput::placeholder {
    color: #a8a8a8;
    font-size: 18px;
}

.mooNameInput:focus {
    background: #dcdada;
}

/* Row 2 & 3: Play Button & Sign In Button */
.mooButtonStack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.mooPlayBtn {
    display: block;
    width: 100%;
    padding: 9px 0;
    background-color: #7ee559;
    box-shadow: 0 4px #5db53d;
    border-radius: 4px;
    color: #ffffff !important;
    font-size: 22px;
    font-family: var(--moo-font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.mooPlayBtn,
.mooPlayBtn:visited,
.mooPlayBtn:hover,
.mooPlayBtn:active,
.mooPlayBtn span,
#enterGame,
#enterGame:visited,
#enterGame:hover,
#enterGame:active,
#enterGame span,
#enterGameText {
    color: #ffffff !important;
}

.mooPlayBtn:hover {
    background-color: #6fc94e;
    color: #ffffff !important;
}

.mooPlayBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #5db53d;
    color: #ffffff !important;
}

.mooSignInBtn {
    display: block;
    width: 100%;
    padding: 9px 0;
    background-color: #54a0ff;
    box-shadow: 0 4px #3d7cb8;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 22px;
    font-family: var(--moo-font);
    text-align: center;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.mooSignInBtn:hover {
    background-color: #428fe6;
    color: #fff;
}

.mooSignInBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #3d7cb8;
}

/* Row 4: Subtext */
.mooAuthSubtext {
    font-size: 13px;
    color: #a8a8a8;
    text-align: center;
    margin: 8px 0 12px;
    font-family: var(--moo-font);
    user-select: none;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   Authentic MooMoo Custom Select & Dropdown System (Image 1 & Image 2)
   ========================================================================== */
#serverPicker {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.dropdown {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.dropdown.modDropdownWrapper {
    flex: none;
    width: 100%;
    margin-bottom: 12px;
}

.dropdownButton {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 8px 0 10px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--moo-font);
    color: #4a4a4a;
    background-color: #e5e3e3;
    cursor: pointer;
    outline: none;
    user-select: none;
    border: none;
    width: 100%;
    transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.dropdownButton:hover {
    background-color: #dcdada;
}

.dropdownButton:focus-visible,
.dropdown.open .dropdownButton {
    box-shadow: 0 0 0 3px #7ee5598c;
    background-color: #e5e3e3;
}

.dropdownFace {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.chipIcon {
    font-size: 16px;
    color: #888;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.chipName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-family: var(--moo-font);
    font-weight: 500;
    color: #4a4a4a;
}

.dropdownChevron {
    flex: 0 0 auto;
    font-size: 14px;
    color: #888;
    transition: transform 0.15s ease;
    margin-left: 2px;
    line-height: 1;
}

.dropdown.open {
    z-index: 100;
}

.dropdown.open .dropdownChevron {
    transform: rotate(180deg);
}

.dropdownList {
    display: none;
    position: absolute;
    z-index: 150;
    bottom: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-height: min(340px, 50vh);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.dropdown.open .dropdownList {
    display: block;
}

#versionDropdown .dropdownList {
    bottom: auto;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    min-width: 220px;
}

#modDropdown .dropdownList {
    min-width: 100%;
}

.dropdownHeader {
    padding: 6px 8px 3px;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #a8a8a8;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    font-family: var(--moo-font);
}

.dropdownHeader:not(:first-child) {
    margin-top: 4px;
    border-top: 1px solid #eeecec;
    padding-top: 8px;
}

.dropdownRow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--moo-font);
    color: #4a4a4a;
    white-space: nowrap;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.1s ease;
}

.dropdownRow:hover,
.dropdownRow.active {
    background-color: #eeecec;
}

.dropdownRow.selected .rowName {
    color: #62b846;
    font-weight: 700;
}

.dropdownRow.disabled {
    color: #b9b7b7;
    cursor: default;
}

.rowName {
    flex: 1 1 auto;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rowDetail {
    color: #a8a8a8;
    font-size: 13px;
    margin-left: auto;
    flex-shrink: 0;
}

.rowTag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    color: #7a7a7a;
    background-color: #eeecec;
}

.playerCount {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-size: 13px;
    color: #62b846;
    font-weight: 600;
}

.playerCount.busy {
    color: #e0992a;
}

.playerCount.full {
    color: #cc5151;
}

.rowLock {
    flex: 0 0 16px;
    width: 16px;
    font-size: 14px;
    color: #a8a8a8;
}

/* Row 6: Bottom Nav */
.mooBottomNavRow {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #f0efef;
    padding-top: 11px;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}

.mooBottomNavRow.secondaryRow {
    border-top: none;
    padding-top: 4px;
    margin-top: 2px;
    justify-content: center;
    gap: 20px;
}

.mooNavLink,
a.mooNavLink {
    color: #888;
    font-size: 14px;
    font-family: var(--moo-font);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s ease;
    display: inline-block;
    line-height: inherit;
}

.mooNavLink:hover,
a.mooNavLink:hover {
    color: #4A4A4A;
}

@media only screen and (max-width: 1200px) {
    .cornerLeaderboard.mooLeaderboardCard {
        display: none;
    }
}

/* ==========================================================================
   Authentic MooMoo Top-Right Floating Leaderboard Trigger (Image 2)
   ========================================================================== */
#topLeaderboardArea {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
    text-align: right;
    user-select: none;
    transition: opacity 0.15s ease;
}

#topLeaderboardArea:hover {
    opacity: 0.85;
}

#topLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    font-family: var(--moo-font);
    line-height: 1;
    transition: color 0.15s ease;
}

#topLink:hover {
    color: #d8d8d8;
}

.topLinkText {
    font-size: 24px;
    font-family: var(--moo-font);
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1;
}

.barChartIcon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#topSpot {
    margin-top: 6px;
    font-size: 16px;
    font-family: var(--moo-font);
    color: #fff;
    text-align: right;
    white-space: nowrap;
    text-shadow: none;
}

#topSpot .topSpotLabel {
    color: var(--moo-text-dim);
    margin-right: 4px;
}

#topSpot .topSpotClan {
    color: #ff9f43;
    font-weight: 700;
}

#topSpot .topSpotName {
    color: #fff;
}

#topSpot .topSpotDivider {
    color: var(--moo-text-dim);
    margin: 0 4px;
}

#topSpot .topSpotKills {
    color: var(--moo-green);
    font-weight: 700;
}

/* ==========================================================================
   Authentic MooMoo Leaderboard Dialog Card (Image 3)
   ========================================================================== */
#leaderboardDialogCard,
#settingsDialogCard,
#howToDialogCard {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    width: 320px !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 8px #c4c4c4 !important;
    padding: 16px 18px 14px !important;
    margin: 0 !important;
    box-sizing: border-box;
    animation: dialogIn 0.2s ease-out;
}


.viewHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 12px -4px;
    font-size: 22px;
    color: #292929;
}

.viewHeaderTitle {
    font-size: 20px;
    font-weight: 700;
    color: #292929;
}

.viewBack {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #a8a8a8;
    background-color: #ececec;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.viewBack:hover {
    color: #4a4a4a;
    background-color: #dedede;
}

.segTabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 6px;
    border-radius: 8px;
    background-color: #ececec;
}

.segTabs a.segTab {
    flex: 1 1 0;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    color: #5a5a5a;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
    display: block;
}

.segTabs a.segTab:hover {
    background-color: #dedede;
    color: #292929;
}

.segTabs a.segTab.active {
    background-color: #6cc24a;
    color: #fff;
    font-weight: 700;
}

.topTitle {
    margin: 8px 0 4px 0;
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #a8a8a8;
    font-weight: 700;
}

.viewBody {
    max-height: 280px;
    min-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
    padding-right: 4px;
}

.viewBody::-webkit-scrollbar {
    width: 6px;
}

.viewBody::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

.topPlayer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #a8a8a8;
    padding: 4px 0;
    border-bottom: 1px solid #f2f2f2;
}

.topPlayer:last-child {
    border-bottom: none;
}

.topPlayer .topLeftCol {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a4a4a;
    flex: 1 1 auto;
    min-width: 0;
}

.topPlayer .topRankNum {
    font-size: 13px;
    color: #a8a8a8;
    min-width: 16px;
    text-align: center;
}

.topPlayer .topName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a4a4a;
    font-weight: 600;
}

.topPlayer .topClan {
    font-size: 12px;
    color: #b8860b;
    font-weight: 700;
}

.topPlayer .topKills {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #888;
    font-size: 14px;
}

.topPlayer .topCrown {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topPlayer .topRankBadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    flex-shrink: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.topPlayer .topRankBadge .topRankIcon {
    font-size: 12px;
    line-height: 1;
}

.topPlayer .topRankBadge .topRankTitle {
    font-weight: 800;
}

.topPlayer .topRankBadge .topRankDivider {
    opacity: 0.5;
    margin: 0 1px;
}

.topPlayer .topRankBadge .topRankElo {
    font-weight: 800;
}

.lbLoading,
.lbError,
.lbEmpty {
    text-align: center;
    padding: 24px 0;
    color: #a8a8a8;
    font-size: 14px;
}

.lbEmptyState {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 16px;
    margin: 8px 0;
    border-radius: 10px;
    background-color: #f7f6f6;
    border: 1px dashed #dedede;
    box-sizing: border-box;
}

.lbEmptyIcon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
    animation: lbFloat 2.5s ease-in-out infinite;
}

@keyframes lbFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.lbEmptyTitle {
    font-size: 16px;
    font-weight: 700;
    color: #4a4a4a;
    font-family: var(--moo-font);
    margin-bottom: 4px;
}

.lbEmptySub {
    font-size: 13px;
    color: #a8a8a8;
    line-height: 1.4;
    max-width: 250px;
    font-family: var(--moo-font);
}

/* ==========================================================================
   Survival Game Mode Selector (Ranked vs Unranked)
   ========================================================================== */
.mooModeSelector {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.mooModeBtn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    background-color: #e5e3e3;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #666;
    font-family: var(--moo-font);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    outline: none;
}

.mooModeBtn:hover {
    background-color: #dcdada;
    color: #333;
    transform: translateY(-1px);
}

.mooModeBtn.active[data-mode="ranked"] {
    background-color: #fff9e6;
    border-color: #f1c40f;
    color: #d68910;
    box-shadow: 0 3px 0 #d4ac0d;
}

.mooModeBtn.active[data-mode="unranked"] {
    background-color: #eef6ff;
    border-color: #3498db;
    color: #2980b9;
    box-shadow: 0 3px 0 #2471a3;
}

.modeBadgeIcon {
    font-size: 16px;
    line-height: 1;
}

.modeBadgeLabel {
    letter-spacing: 0.5px;
}

/* ==========================================================================
   In-Game Commands Modal Styling
   ========================================================================== */
.commandsModalBox {
    max-width: 620px !important;
    width: 95% !important;
    max-height: 85vh;
    padding: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.commandsModalHeader {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #edf2f7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.commandsModalHeader .menuHeader {
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: 20px;
    font-weight: bold;
    color: #292929;
}

.commandsModalHeader .modalClose {
    position: static !important;
    font-size: 28px;
    line-height: 1;
    color: var(--moo-text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.commandsModalHeader .modalClose:hover {
    color: var(--moo-danger);
}

.commandsModalBox .modalContent {
    overflow-y: auto;
    flex: 1;
    padding: 16px 24px 20px !important;
    box-sizing: border-box;
}

.commandsCategory {
    margin-bottom: 18px;
    text-align: left;
}

.commandsCategoryTitle {
    position: sticky;
    top: -16px;
    z-index: 10;
    background: #ffffff;
    padding: 6px 0;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: #27ae60;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.cmdCard {
    background: #f7f6f6;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmdTopRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cmdSyntax {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #2c3e50;
    background: #eaeaea;
    padding: 3px 8px;
    border-radius: 4px;
    user-select: all;
}

.cmdDesc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.cmdCopyBtn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: var(--moo-font);
    color: #555;
    cursor: pointer;
    transition: all 0.12s ease;
}

.cmdCopyBtn:hover {
    background: #7ee559;
    border-color: #6bc24a;
    color: #fff;
}

/* ==========================================================================
   Authentic MooMoo 1.6.9 GDPR & Cookie Consent Modal
   ========================================================================== */
#consentBlock {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    text-align: center;
    z-index: 99999999999;
    background-color: rgba(0, 0, 0, 0.82);
    justify-content: center;
    align-items: center;
}

#consentShake {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#consentShake.shake {
    animation: consentShakeAnim 0.35s ease-in-out;
}

@keyframes consentShakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-12px); }
    40%, 80% { transform: translateX(12px); }
}

#consentWindow {
    background-color: #fff;
    padding: 24px;
    width: 520px;
    max-width: 90vw;
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.consentTitle {
    font-size: 32px !important;
    font-family: 'Hammersmith One', sans-serif;
    font-weight: bold;
    color: #222;
    display: block;
    margin-bottom: 12px;
}

.consentDesc {
    color: rgba(0, 0, 0, 0.65);
    font-size: 15px;
    font-family: 'Hammersmith One', sans-serif;
    line-height: 1.5;
    margin-bottom: 18px;
}

.consentDesc a {
    color: #2b7bb9;
    text-decoration: underline;
    font-weight: bold;
}

.termsBtn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 32px;
    margin-left: 6px;
    margin-right: 6px;
    font-size: 24px !important;
    font-family: 'Hammersmith One', sans-serif;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.termsBtn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.termsBtn:active {
    transform: translateY(1px);
}

@media only screen and (max-width: 480px) {
    .consentTitle {
        font-size: 24px !important;
    }
    .consentDesc {
        font-size: 13.5px;
    }
    .termsBtn {
        font-size: 18px !important;
        padding: 6px 20px;
    }
}


/* ---------- Hub SPA Modal & Safe-Area Layout ---------- */
body.hub-modal-open #gameName,
body.hub-modal-open #menuCardHolder {
    opacity: 0 !important;
    pointer-events: none !important;
}

#hubPageModal {
    position: fixed;
    top: 82px;
    bottom: 72px;
    left: 24px;
    right: 24px;
    max-width: 1180px;
    margin: 0 auto;
    z-index: 900;
    background-color: var(--moo-card, #ffffff);
    border: 2px solid #d7dce3;
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #2c3e50;
    font-family: var(--moo-font, 'Hammersmith One', sans-serif);
}

.hubModalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #f5f7fa;
    border-bottom: 2px solid #e5e8ee;
}

.hubModalBrand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hubCompactLogo {
    font-size: 17px;
    font-weight: 800;
    color: #292929;
    letter-spacing: 0.4px;
}

.hubCompactAccent {
    color: #4fc3f7;
}

.hubModalDivider {
    color: #cbd5e1;
}

.hubModalTitle {
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
}

.hubModalBody {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    color: #2c3e50;
    background: #ffffff;
}

.hubModalBody::-webkit-scrollbar {
    width: 8px;
}
.hubModalBody::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.hubModalBody h4 {
    color: #292929 !important;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.hubGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 14px;
}

.hubCard {
    background: #f8f9fb;
    border: 1px solid #e2e6ed;
    border-radius: 6px;
    padding: 15px;
    color: #2c3e50;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hubCard[data-open-clip]:hover,
.hubCard[data-open-clan]:hover,
.hubCard[data-open-mod]:hover {
    border-color: #7ee559;
    background: #f3f9f1;
}

.hubBtn {
    background: #4b9ce2;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px #357ab8;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}

.hubBtn:hover {
    filter: brightness(1.06);
}

.hubBtn:active {
    transform: translateY(2px);
    box-shadow: 0 1px #357ab8;
}

.hubBtn.green {
    background: #7ee559;
    color: #1f3a15;
    box-shadow: 0 3px #5eb83d;
}
.hubBtn.green:active {
    box-shadow: 0 1px #5eb83d;
}

.hubBtn.danger {
    background: #e05353;
    box-shadow: 0 3px #b83b3b;
}
.hubBtn.danger:active {
    box-shadow: 0 1px #b83b3b;
}

.hubBtn.secondary {
    background: #e5e7eb;
    color: #374151;
    box-shadow: 0 3px #c7cbd1;
}
.hubBtn.secondary:active {
    box-shadow: 0 1px #c7cbd1;
}

.hubInput {
    background: #eceeef;
    border: 1px solid #d4d8df;
    color: #292929;
    border-radius: 5px;
    padding: 8px 11px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hubInput:focus {
    border-color: #6cc24a;
    background: #ffffff;
}

/* ---------- Settings Modal Design ---------- */
.hubSettingsSection {
    background: #ffffff;
    border: 1px solid #e2e6ed;
    border-radius: 8px;
    padding: 20px;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hubSettingsHeader {
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f3f7;
    padding-bottom: 10px;
}

.hubSettingsTitle {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.hubSettingsSub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.hubAvatarUploadBox {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #f8fafd;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hubAvatarUploadBox:hover,
.hubAvatarUploadBox.dragover {
    border-color: #7ee559;
    background: #f0fdf4;
}

.hubAvatarPreviewWrapper {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
    background: #ffffff;
}

.hubAvatarPreviewWrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hubAvatarOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.15s ease;
    gap: 3px;
}

.hubAvatarPreviewWrapper:hover .hubAvatarOverlay {
    opacity: 1;
}

.hubAvatarMeta {
    flex: 1;
    min-width: 0;
}

.hubAvatarActionTitle {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.hubAvatarActionHint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.4;
}

.hubAvatarBrowse {
    color: #4b9ce2;
    font-weight: 600;
    text-decoration: underline;
}

.hubAvatarBtns {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.hubFormGroup {
    display: flex;
    flex-direction: column;
}

.hubLabel {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.hubFieldHint {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
    line-height: 1.3;
}

.hubFormActions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f3f7;
}

/* ---------- VS Code Style Codebase Inspector ---------- */
.vscodeShell {
    display: flex;
    flex-direction: column;
    height: 460px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    color: #cccccc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vscodeMain {
    display: flex;
    flex: 1;
    min-height: 0;
}

.vscodeSidebar {
    width: 230px;
    background: #252526;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.vscodeSidebarTitle {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #bbbbbb;
    background: #252526;
    border-bottom: 1px solid #2d2d2d;
}

.vscodeTree {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    font-size: 13px;
}

.vscodeTreeRow {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.vscodeTreeRow:hover {
    background: #2a2d2e;
}

.vscodeTreeRow.active {
    background: #37373d;
    color: #ffffff;
}

.vscodeEditorPane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vscodeTabs {
    display: flex;
    background: #252526;
    border-bottom: 1px solid #2d2d2d;
    overflow-x: auto;
    height: 35px;
    flex-shrink: 0;
}

.vscodeTab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 12px;
    color: #969696;
    background: #2d2d2d;
    border-right: 1px solid #252526;
    cursor: pointer;
    white-space: nowrap;
}

.vscodeTab.active {
    background: #1e1e1e;
    color: #ffffff;
    border-top: 2px solid #7ee559;
}

.vscodeTabClose {
    opacity: 0.6;
    font-size: 14px;
    line-height: 1;
}

.vscodeTabClose:hover {
    opacity: 1;
    color: #f87171;
}

.vscodeBreadcrumbs {
    padding: 4px 12px;
    font-size: 12px;
    color: #9ca3af;
    background: #1e1e1e;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.vscodeMonacoHost {
    flex: 1;
    min-height: 0;
}

.vscodeStatusBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 12px;
    height: 22px;
    background: #007acc;
    color: #ffffff;
    font-size: 11px;
    flex-shrink: 0;
}
