/* MineBloom Portal — shared component styles */
.mbp-status,.mbp-player-card,.mbp-profile,.mbp-leaderboard{font-family:inherit;color:inherit}

/* Server status */
.mbp-status{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid rgba(127,127,127,.22);border-radius:14px;background:rgba(127,127,127,.06)}
.mbp-status-dot,.mbp-player-indicator{display:inline-block;width:10px;height:10px;border-radius:50%;flex:0 0 auto;background:#888}
.mbp-status.is-online .mbp-status-dot,.mbp-player-indicator.is-online{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.mbp-status.is-offline .mbp-status-dot,.mbp-player-indicator.is-offline{background:#ef4444}
.mbp-status strong,.mbp-status small{display:block}
.mbp-status small{opacity:.7;margin-top:3px}

/* Player grid */
.mbp-player-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.mbp-player-card{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid rgba(127,127,127,.22);border-radius:13px;text-decoration:none!important;transition:transform .15s ease,border-color .15s ease}
.mbp-player-card:hover{transform:translateY(-2px);border-color:rgba(127,127,127,.5)}
.mbp-player-card img{width:42px;height:42px;border-radius:9px;image-rendering:pixelated}
.mbp-player-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.mbp-player-info strong{overflow:hidden;text-overflow:ellipsis}
.mbp-player-info small{opacity:.68}
.mbp-player-indicator{width:8px;height:8px}

/* Player profile */
.mbp-profile{padding:22px;border:1px solid rgba(127,127,127,.22);border-radius:18px}
.mbp-profile-header{display:flex;align-items:center;gap:18px;margin-bottom:22px}
.mbp-profile-header img{width:88px;height:88px;border-radius:14px;image-rendering:pixelated}
.mbp-profile-header h2{margin:0 0 7px}
.mbp-rank,.mbp-profile-status{display:inline-block;margin:0 8px 5px 0;padding:4px 9px;border-radius:30px;background:rgba(127,127,127,.12);font-size:12px}
.mbp-profile-status.is-online{color:#16a34a}
.mbp-profile-status.is-offline{opacity:.65}
.mbp-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.mbp-stat-card{padding:14px;border-radius:12px;background:rgba(127,127,127,.08)}
.mbp-stat-card small,.mbp-stat-card strong{display:block}
.mbp-stat-card small{opacity:.7;margin-bottom:6px}
.mbp-stat-card strong{font-size:20px}
.mbp-profile-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;font-size:12px;opacity:.7}

/* Leaderboard */
.mbp-leaderboard{padding:18px;border:1px solid rgba(127,127,127,.22);border-radius:16px}
.mbp-leaderboard h3{margin:0 0 12px}
.mbp-leaderboard ol{list-style:none;margin:0;padding:0}
.mbp-leaderboard li{display:flex;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid rgba(127,127,127,.14)}
.mbp-leaderboard li:last-child{border-bottom:0}
.mbp-leaderboard li a{flex:1;text-decoration:none}
.mbp-leaderboard li strong{font-size:13px}
.mbp-place{min-width:28px;font-weight:700;opacity:.7}
.mbp-empty{padding:18px;border:1px dashed rgba(127,127,127,.35);border-radius:12px;opacity:.75}

/* Community statistics — optional icon, number, then label */
.mbp-community-stat{
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
    width:100%;
    box-sizing:border-box;
    padding:18px 20px;
    border:1px solid rgba(127,127,127,.22);
    border-radius:15px;
    background:rgba(127,127,127,.06);
    font-family:inherit;
    color:inherit;
    text-align:center !important;
}
.mbp-community-stat > .mbp-community-stat__icon{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    order:0;
    line-height:1;
    color:inherit;
}
.mbp-community-stat > .mbp-community-stat__icon i{line-height:1;color:inherit !important}
.mbp-community-stat > .mbp-community-stat__icon svg{display:block;width:1em;height:1em;color:inherit;fill:currentColor !important;stroke:currentColor !important}
.mbp-community-stat > .mbp-community-stat__icon svg *{fill:currentColor !important;stroke:currentColor !important}
.mbp-community-stat > .mbp-community-stat__number{
    display:block !important;
    order:1;
    width:100%;
    margin:0;
    padding:0 !important;
    text-align:center !important;
}
.mbp-community-stat > .mbp-community-stat__label{
    display:block !important;
    order:2;
    width:100%;
    margin:0 !important;
    padding:0 !important;
    opacity:.78;
    text-align:center !important;
}

@media(max-width:600px){
    .mbp-profile{padding:15px}
    .mbp-profile-header img{width:68px;height:68px}
    .mbp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Elementor community stat: inline layout and optional card removal */
.mbp-community-stat--inline{
    flex-direction:row !important;
    flex-wrap:wrap !important;
    align-items:baseline !important;
    justify-content:flex-start !important;
    gap:6px !important;
    width:auto;
    text-align:left !important;
}
.mbp-community-stat--inline > .mbp-community-stat__icon{
    order:-1;
    align-self:center;
    margin:0 !important;
}
.mbp-community-stat--inline > .mbp-community-stat__label{
    order:0;
    display:inline !important;
    width:auto;
    opacity:1;
    text-align:inherit !important;
}
.mbp-community-stat--inline > .mbp-community-stat__separator{
    order:1;
    display:inline;
}
.mbp-community-stat--inline > .mbp-community-stat__number{
    order:2;
    display:inline !important;
    width:auto;
    margin:0 !important;
    text-align:inherit !important;
}
.mbp-community-stat--no-card{
    width:auto !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
.mbp-community-stat--no-card.mbp-community-stat--inline{
    display:inline-flex !important;
}


/* Monthly leaderboard archive */
.mbp-monthly-leaderboards{width:100%;color:inherit}
.mbp-monthly-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.mbp-monthly-tabs{display:flex;gap:8px;flex-wrap:wrap}
.mbp-monthly-tabs a{display:inline-flex;align-items:center;padding:9px 15px;border:1px solid rgba(127,127,127,.24);border-radius:999px;text-decoration:none;color:inherit;font-weight:600;transition:background .2s,border-color .2s}
.mbp-monthly-tabs a:hover,.mbp-monthly-tabs a.is-active{background:rgba(139,92,246,.14);border-color:#8b5cf6;color:inherit}
.mbp-month-picker{display:flex;align-items:center;gap:9px}
.mbp-month-picker label{font-size:13px;opacity:.75}
.mbp-month-picker select{min-width:150px;padding:9px 12px;border:1px solid rgba(127,127,127,.3);border-radius:9px;background:transparent;color:inherit}
.mbp-monthly-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 18px}
.mbp-monthly-heading h3{margin:0;font-size:1.35em}
.mbp-monthly-heading span{opacity:.7;font-size:.92em}
.mbp-monthly-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin:0 0 20px}
.mbp-podium-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:18px 10px;border:1px solid rgba(127,127,127,.2);border-radius:14px;background:rgba(127,127,127,.06);text-align:center}
.mbp-podium-1{padding-top:26px;padding-bottom:26px;border-color:rgba(234,179,8,.45);background:rgba(234,179,8,.09)}
.mbp-podium-place{font-size:12px;font-weight:800;opacity:.7}
.mbp-podium-card strong{max-width:100%;overflow-wrap:anywhere}
.mbp-podium-card>span:last-child{font-size:.9em;opacity:.8}
.mbp-monthly-ranking{list-style:none;margin:0;padding:0;counter-reset:none}
.mbp-monthly-ranking li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid rgba(127,127,127,.16)}
.mbp-monthly-ranking li:first-child{border-top:1px solid rgba(127,127,127,.16)}
.mbp-monthly-rank{font-weight:700;opacity:.65}
.mbp-monthly-player{font-weight:600;overflow-wrap:anywhere}
.mbp-monthly-ranking strong{font-variant-numeric:tabular-nums;text-align:right}
@media(max-width:600px){.mbp-monthly-toolbar{align-items:stretch}.mbp-monthly-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mbp-monthly-tabs a{justify-content:center}.mbp-month-picker{justify-content:space-between}.mbp-month-picker select{flex:1}.mbp-monthly-podium{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.mbp-podium-card{box-sizing:border-box;min-width:0;min-height:clamp(190px,52vw,260px);height:auto;padding:14px 6px;font-size:.88em;justify-content:space-between;overflow:hidden}.mbp-podium-1{min-height:clamp(235px,64vw,320px);padding:18px 6px}.mbp-podium-card .mbp-player-identity{display:flex;flex:1 1 auto;width:100%;min-width:0;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px}.mbp-podium-card .mbp-player-identity strong{display:block;width:100%;max-width:100%;min-width:0;line-height:1.15;overflow-wrap:anywhere;word-break:normal}.mbp-podium-card .mbp-movement{display:block;max-width:100%;line-height:1.2}.mbp-podium-card .mbp-player-avatar{flex:0 0 auto}.mbp-podium-card>span:last-child{display:block;width:100%;line-height:1.2;overflow-wrap:anywhere}.mbp-monthly-ranking li{grid-template-columns:36px minmax(0,1fr) auto;gap:8px;padding:12px 8px}}

/* Monthly leaderboard v0.5.5 enhancements */
.mbp-prize-announcement{box-sizing:border-box;margin:18px 0 22px;padding:18px 20px;border:1px solid rgba(127,127,127,.24);border-radius:14px;background:rgba(139,92,246,.08)}
.mbp-prize-announcement h4{margin:0 0 8px;font-size:1.08em;font-weight:800}
.mbp-prize-content>*:first-child{margin-top:0}.mbp-prize-content>*:last-child{margin-bottom:0}
.mbp-player-identity{display:inline-flex;align-items:center;gap:9px;min-width:0}
.mbp-player-avatar{display:inline-block;flex:0 0 auto;object-fit:cover;image-rendering:pixelated;vertical-align:middle}
.mbp-monthly-player .mbp-player-identity{max-width:100%}
.mbp-movement{display:inline-flex;align-items:center;white-space:nowrap;font-size:11px;font-weight:800;line-height:1.2}
.mbp-movement.is-up{color:#22c55e}.mbp-movement.is-down{color:#ef4444}.mbp-movement.is-same{color:#9ca3af}.mbp-movement.is-new{color:#8b5cf6}
.mbp-podium-card .mbp-player-identity{justify-content:center;flex-wrap:wrap}
.mbp-podium-card .mbp-player-identity strong{overflow-wrap:anywhere}
.mbp-refresh-note{margin:8px 0 0;font-size:12px;line-height:1.45;opacity:.68;text-align:center}
@media(max-width:600px){.mbp-prize-announcement{padding:14px}.mbp-monthly-ranking li .mbp-player-identity{gap:6px}.mbp-monthly-ranking .mbp-player-avatar{width:26px!important;height:26px!important}.mbp-movement{font-size:10px}}

/* Public player profile: single continuous layout */
.mbp-profile--public{max-width:100%;box-sizing:border-box;font-family:inherit;color:inherit;background:transparent}
.mbp-profile--public :where(h1,h2,h3,h4,p,span,strong,small,label,button,select){font-family:inherit}
.mbp-profile--public :where(h1,h2,h3,h4,p,span,strong,small,label){color:inherit}
.mbp-profile-heading{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px 9px}
.mbp-profile-heading h2{flex:0 0 100%;overflow-wrap:anywhere}
.mbp-profile-content{width:100%;min-width:0}
/* v0.5.8: make player identities in monthly leaderboard clickable */
.mbp-player-profile-link{color:inherit;text-decoration:none;cursor:pointer}
.mbp-player-profile-link:hover{color:inherit;text-decoration:underline;text-underline-offset:3px}
.mbp-player-profile-link:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}

/* v0.6.0: keep public profiles visually integrated with the active WordPress theme */
.mbp-public-profile-route{color:inherit;font-family:inherit;background:transparent}
.mbp-public-profile-route .mbp-profile--public{background:transparent;color:inherit;font-family:inherit}
.mbp-public-profile-route .mbp-profile--public a{color:inherit}

/* Public profile: constrain the component to the theme content column. */
.mbp-profile--public{display:block;width:100%;max-width:1040px;min-width:0;margin:0 auto;box-sizing:border-box;overflow:hidden}
.mbp-profile--public *{box-sizing:border-box;min-width:0}
.mbp-profile--public .mbp-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mbp-profile--public .mbp-profile-header img{flex:0 0 88px;object-fit:cover}
@media(max-width:600px){.mbp-profile--public{padding:14px}.mbp-profile--public .mbp-profile-header img{flex-basis:68px}}

/* v0.6.6 profile identity and dual-currency header */
.mbp-profile--public .mbp-profile-header{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:center;gap:18px;width:100%;max-width:100%;min-width:0}
.mbp-profile--public .mbp-profile-header img{width:104px;height:128px;flex:none;object-fit:contain;object-position:center bottom;border-radius:12px;image-rendering:auto;background:rgba(127,127,127,.06)}
.mbp-profile--public .mbp-profile-heading{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.mbp-profile--public .mbp-profile-heading h2{display:flex;flex-wrap:wrap;gap:7px;margin:0;font-size:clamp(21px,3vw,30px);line-height:1.2;overflow-wrap:anywhere}
.mbp-profile-rank-line{font-size:14px;opacity:.82}
.mbp-profile-rank-line strong{font-weight:700;opacity:1}
.mbp-profile-currencies{display:flex;flex-direction:column;gap:9px;justify-self:end;text-align:right;white-space:nowrap;font-size:15px}
.mbp-profile-currencies strong{font-weight:750;font-variant-numeric:tabular-nums}
@media(max-width:620px){.mbp-profile--public .mbp-profile-header{grid-template-columns:76px minmax(0,1fr);gap:12px}.mbp-profile--public .mbp-profile-header img{width:76px;height:100px}.mbp-profile-currencies{grid-column:2;justify-self:start;text-align:left;flex-direction:row;flex-wrap:wrap;gap:5px 14px;font-size:13px}.mbp-profile--public .mbp-profile-heading h2{font-size:22px}}

/* Public profile statistic cards: four columns on desktop, responsive on smaller screens */
.mbp-profile--public .mbp-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.mbp-profile--public .mbp-profile-heading h2 .mbp-profile-name-separator{font-size:.72em;line-height:1;align-self:center}
@media(max-width:800px){.mbp-profile--public .mbp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.mbp-profile--public .mbp-stat-grid{grid-template-columns:minmax(0,1fr)}}


/* v0.6.9: MineBloom profile responsive widths for the site's 1290 / 1024 / 767 layouts */
.mbp-profile--public{width:100%;max-width:1290px;margin-inline:auto;padding:22px;box-sizing:border-box}
.mbp-profile--public .mbp-profile-header,
.mbp-profile--public .mbp-stat-grid,
.mbp-profile--public .mbp-profile-content{width:100%;max-width:100%;min-width:0}
.mbp-profile--public .mbp-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mbp-profile--public .mbp-stat-card{min-width:0;overflow-wrap:anywhere}
@media (max-width:1024px){
  .mbp-profile--public{max-width:1024px;padding:20px}
  .mbp-profile--public .mbp-profile-header{grid-template-columns:92px minmax(0,1fr) auto;gap:14px}
  .mbp-profile--public .mbp-profile-header img{width:92px;height:116px}
  .mbp-profile--public .mbp-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
}
@media (max-width:767px){
  .mbp-profile--public{max-width:767px;padding:16px}
  .mbp-profile--public .mbp-profile-header{grid-template-columns:76px minmax(0,1fr);gap:12px}
  .mbp-profile--public .mbp-profile-header img{width:76px;height:100px}
  .mbp-profile--public .mbp-profile-currencies{grid-column:2;justify-self:start;text-align:left;flex-direction:row;flex-wrap:wrap;gap:5px 14px;white-space:normal;font-size:13px}
  .mbp-profile--public .mbp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media (max-width:420px){
  .mbp-profile--public{padding:12px}
  .mbp-profile--public .mbp-stat-grid{grid-template-columns:minmax(0,1fr)}
}

/* v0.7.0: always keep two statistic cards per row on mobile, including narrow phones. */
@media (max-width: 767px){
  .mbp-profile--public .mbp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

.mbp-profile-job-line{font-size:14px;opacity:.82}.mbp-profile-job-line strong{font-weight:700;opacity:1}

/* MineBloom Player Search Elementor widget */
.mbp-player-search-wrap { width: 100%; }
.mbp-player-search { display: flex; align-items: stretch; width: 100%; gap: 10px; margin: 0; }
.mbp-player-search.is-stacked { flex-direction: column; }
.mbp-player-search input { box-sizing: border-box; flex: 1 1 auto; min-width: 0; width: 100%; min-height: 46px; margin: 0; padding: 12px 15px; border: 1px solid #444; border-radius: 8px; background: #171717; color: #fff; font: inherit; outline: none; }
.mbp-player-search input:focus { border-color: #75c98b; box-shadow: 0 0 0 2px rgba(117,201,139,.16); }
.mbp-player-search input::placeholder { color: #999; opacity: 1; }
.mbp-player-search button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 46px; margin: 0; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; background: #75c98b; color: #102116; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .2s ease, opacity .2s ease; }
.mbp-player-search button:hover { background: #62b879; }
.mbp-player-search button:disabled { opacity: .65; cursor: wait; }
.mbp-player-search.is-stacked button { width: 100%; }
.mbp-player-search-icon { display: inline-block; font-size: 1.25em; line-height: 1; transform: rotate(-45deg); }
.mbp-player-search-message { min-height: 0; font-size: 13px; line-height: 1.5; }
.mbp-player-search-message.is-error { margin-top: 8px; color: #e58b8b; }
.mbp-player-search-message.is-loading { margin-top: 8px; color: inherit; opacity: .75; }
@media (max-width: 480px) { .mbp-player-search:not(.is-stacked) { gap: 7px; } .mbp-player-search:not(.is-stacked) button { padding-left: 13px; padding-right: 13px; } }
