/* ZgarZ v47: classic player page, based on the supplied layout.
   Scoped to the default theme; paid and preview themes retain their own CSS. */
html body.zg-reference {
    display: block; margin: 0; min-width: 0;
    background: #f0f8ff !important; color: #000 !important;
    font: 13px Verdana, Arial, sans-serif;
}
body.zg-reference *, body.zg-reference *::before, body.zg-reference *::after { box-sizing: border-box; }
body.zg-reference .zg-profile-header {
    width: min(100% - 24px, 1100px); margin: 14px auto 18px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; padding: 0 0 10px; border-bottom: 1px solid #c4d2de;
    background: transparent; box-shadow: none; border-radius: 0;
}
body.zg-reference .zg-profile-eyebrow { font-size: 10px; letter-spacing: 1px; color: #526579; }
body.zg-reference .zg-profile-header h1 { margin: 5px 0; font: 700 20px Verdana, sans-serif; }
body.zg-reference .zg-profile-header small { font-size: 11px; color: #526579; }
body.zg-reference .zg-profile-header nav { display: flex; flex-wrap: wrap; gap: 14px; }
body.zg-reference a { color: #0000ee; text-decoration: none; }
body.zg-reference a:hover { text-decoration: underline; }
body.zg-reference :focus-visible { outline: 2px solid #175bab; outline-offset: 3px; }
body.zg-reference .zg-profile-shell { width: calc(100% - 20px); max-width: 1600px; margin: 0 auto; padding: 0; background: transparent; box-shadow: none; }
body.zg-reference .centered, body.zg-reference center { text-align: center; }
body.zg-reference .centered > center { display: block; }
body.zg-reference input, body.zg-reference button, body.zg-reference textarea { font: 12px Verdana, Arial, sans-serif; max-width: 100%; }
body.zg-reference input[type="text"], body.zg-reference input[type="number"], body.zg-reference textarea {
    color: #111; background: #fff; border: 1px solid #8c99a5; border-radius: 2px; padding: 5px 7px;
}
body.zg-reference button, body.zg-reference input[type="submit"] {
    color: #111; background: #eee; border: 1px solid #999; border-radius: 3px;
    padding: 5px 8px; cursor: pointer; line-height: 1.3;
}
body.zg-reference button:hover, body.zg-reference input[type="submit"]:hover { background: #e1e8ee; }
body.zg-reference button:disabled { cursor: not-allowed; opacity: .6; }
body.zg-reference .zg-pin-panel { display: table; max-width: 100%; margin: 10px auto; padding: 10px; background: #d3b8b8; border-radius: 10px; }
body.zg-reference .zg-pin-panel summary { cursor: pointer; font-size: 13px; text-align: center; }
body.zg-reference .zg-pin-content { padding-top: 8px; }
body.zg-reference #premiumForm, body.zg-reference #clanForm { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; }
body.zg-reference .zg-follow, body.zg-reference .profile-messages-info, body.zg-reference .zg-privacy, body.zg-reference .zg-skins { max-width: 100%; }
body.zg-reference .zg-wallet { max-width: 100%; }
body.zg-reference .zg-wallet-table { margin: auto; border-collapse: separate; border-spacing: 4px; background: transparent; }
body.zg-reference .zg-wallet-table td { padding: 2px; vertical-align: middle; }
body.zg-reference .zg-wallet-table td:last-child { line-height: 2; }
body.zg-reference #user_gold, body.zg-reference #bonus_gold { font-size: 18px; white-space: nowrap; }
body.zg-reference .container { width: 100%; max-width: 900px; margin: 12px auto; padding: 0; }
body.zg-reference #descriptionDisplay { white-space: normal; overflow-wrap: anywhere; }
body.zg-reference .embed-container { max-width: 100%; }
body.zg-reference .embed-container iframe { max-width: 100%; }
body.zg-reference .zg-names-panel { max-width: 100%; overflow-x: auto; margin: 0 auto !important; background: #cde; }
body.zg-reference #nameTable { border-collapse: separate; border-spacing: 4px; margin: 4px auto 0; width: auto; }
body.zg-reference #nameTable td { padding: 2px 3px; font-size: 13px; }
body.zg-reference #nameTable td:first-child { overflow-wrap: anywhere; max-width: 280px; }
body.zg-reference .favorite-button.favorited { background: #fff2a5; }
body.zg-reference .zg-name-entry { max-width: 100%; }
body.zg-reference .zg-name-notice { margin: 8px 0; font-size: 11px; color: #555; }
body.zg-reference .div_rekor { width: fit-content; max-width: 100%; margin: 14px auto; padding: 12px 22px; border-radius: 0; background: #ffdd00; color: #000; font-size: 22px; overflow-wrap: anywhere; }
body.zg-reference .div_rekor img { width: 64px; height: 64px; object-fit: contain; }
body.zg-reference #user-wins-section { display: block; margin: 20px auto 0; width: 100%; }
body.zg-reference #win-count-header, body.zg-reference #user-wins-empty { font: 25px Verdana, sans-serif !important; margin: 10px auto; }
body.zg-reference #win-bars-container { width: 100%; text-align: center; }
body.zg-reference .win-item {
    width: var(--zg-score-width, 80px) !important; max-width: calc(100% - 8px); min-width: 64px;
    display: inline-block; vertical-align: middle; margin: 0 2px 5px;
    padding: 5px 8px; border-radius: 3px; border: 0; font: 15px Verdana, sans-serif;
    text-align: center; color: #fff; position: relative;
}
body.zg-reference .win-band-small { background: #000; }
body.zg-reference .win-band-1m { background: #e60000; }
body.zg-reference .win-band-2m { background: #148322; }
body.zg-reference .win-band-3m { background: #7500d9; }
body.zg-reference .win-band-4m { background: #aa5700; }
body.zg-reference .win-band-5m { background: #1836c7; }
body.zg-reference .tooltiptext { z-index: 10; font-size: 12px; }
body.zg-reference .tooltip:focus-within .tooltiptext { visibility: visible; }
.zg-profile-footer { margin: 50px auto 0; padding: 8px; text-align: center; font: 10px Verdana, sans-serif; }
body.zg-reference .zg-profile-footer { width: fit-content; background: #000; color: #ddd; }
body.zg-reference .zg-profile-footer a { color: #fff; }
@media (max-width: 600px) {
    body.zg-reference .zg-profile-header { justify-content: center; text-align: center; }
    body.zg-reference .zg-profile-header nav { justify-content: center; }
    body.zg-reference .zg-wallet-table, body.zg-reference .zg-wallet-table tbody { display: block; }
    body.zg-reference .zg-wallet-table tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; margin: 8px 0; }
    body.zg-reference .zg-wallet-table td:last-child { grid-column: 1 / -1; text-align: center !important; }
    body.zg-reference #nameTable td { padding: 2px; }
    body.zg-reference #nameTable button { font-size: 11px; padding: 6px 4px; }
    body.zg-reference .zg-privacy button { margin: 3px; }
    body.zg-reference .div_rekor { font-size: 18px; padding: 12px; }
}
