/* ZgarZ v71: measurements from the requested UgarZ player-page reference.
   Default profile theme only; selected paid/preview themes retain their styling. */
html body.zg-reference {
    margin: 0; padding: 0; min-width: 0; overflow-x: hidden;
    background: #f0f8ff !important; color: #000 !important;
    font-family: Verdana !important; font-size: 16px !important; font-weight: 400;
}
body.zg-reference .zg-profile-shell {
    width: 100%; max-width: none; margin: 0 auto; padding: 0;
    background: transparent; border: 0; box-shadow: none;
}
body.zg-reference .zg-profile-header {
    width: calc(100% - 20px); max-width: none; margin: 6px auto;
    padding: 0; border: 0; justify-content: center; gap: 10px;
}
body.zg-reference .zg-profile-eyebrow,
body.zg-reference .zg-profile-header small { display: none; }
body.zg-reference .zg-profile-header h1 { margin: 0; font: 400 16px Verdana; }
body.zg-reference .zg-profile-header nav { gap: 12px; font: 12px Verdana; }
body.zg-reference .centered,
body.zg-reference center { text-align: center; margin-left: auto; margin-right: auto; }
body.zg-reference .div_rekor {
    box-sizing: content-box; display: table; width: auto;
    max-width: calc(100% - 48px); margin: 10px auto; padding: 10px 20px;
    border: 0; border-radius: 0; box-shadow: none;
    background: #ffdd00 !important; color: #000 !important;
    font-family: Verdana !important; font-size: 24px !important;
    font-weight: 400; line-height: normal; text-align: center;
    overflow-wrap: anywhere;
}
body.zg-reference .div_rekor img { width: 128px; height: 128px; object-fit: contain; }
body.zg-reference .div_rekor .hof-row { margin-bottom: 4px; }
body.zg-reference .container {
    width: 100%; max-width: none; margin: 0 auto; padding: 10px 0;
    background: #f0f8ff; color: #000; font: 16px Verdana, Geneva, sans-serif;
}
body.zg-reference #descriptionDisplay { font: 16px Verdana, Geneva, sans-serif; }
body.zg-reference .zg-names-panel {
    box-sizing: border-box; display: block !important; width: 100%; max-width: 100%;
    margin: 0 !important; padding: 10px 0 !important;
    text-align: center; background: #cde !important; font: 16px Verdana;
}
body.zg-reference #nameTable {
    width: auto; margin: 0 auto; display: table; border-collapse: collapse;
    border-spacing: 0; background: #cde; color: #000; font: 16px Verdana;
}
body.zg-reference #nameTable td {
    padding: 1px 7px; border: 0; background: #cde;
    font: 16px/1.025 Verdana; text-align: center;
}
body.zg-reference #nameTable .delete-name,
body.zg-reference #nameTable .moveNameUpBtn,
body.zg-reference #nameTable .favorite-button {
    padding: 2px 7px; border: 1px solid #8e8e8e; border-radius: 2px;
    background: #ececec; color: #111; font: 11px/1.1 Verdana; margin: 0;
}
body.zg-reference #user-wins-section { width: 100%; display: block; margin: 0 auto; }
body.zg-reference #win-count-header,
body.zg-reference #user-wins-empty {
    margin: 0 auto; padding: 0; color: #000 !important;
    font: 400 25px Verdana !important; text-align: center;
}
body.zg-reference #win-bars-container { width: 100%; margin: 0; padding: 0; text-align: center; }
body.zg-reference .win_show.win-item {
    box-sizing: content-box; display: inline-block; vertical-align: baseline;
    width: var(--zg-score-width, 280px) !important;
    min-width: 0 !important; max-width: calc(100% - 18px);
    height: auto; min-height: 0; margin: 0 2px 5px 0;
    padding: 8px; border: 0; border-bottom: 1px dotted #000;
    border-radius: 4px; box-shadow: none;
    font-family: fantasy !important; font-size: 17px !important;
    font-weight: 400; line-height: normal; white-space: nowrap;
    text-align: center; color: #fff !important; cursor: pointer;
}
body.zg-reference .win-band-small,
body.zg-reference .win_show.score_ls_1m { background: #000 !important; }
body.zg-reference .win-band-1m,
body.zg-reference .win_show.score_gr_1m { background: #f50000 !important; }
body.zg-reference .win-band-2m,
body.zg-reference .win_show.score_gr_2m { background: #10951f !important; }
body.zg-reference .win-band-3m,
body.zg-reference .win_show.score_gr_3m { background: #7500f5 !important; }
body.zg-reference .win-band-4m,
body.zg-reference .win_show.score_gr_4m { background: #ff9800 !important; }
body.zg-reference .win-band-5m,
body.zg-reference .win_show.score_gr_5m { background: #051be3 !important; }
body.zg-reference .win_show .tooltiptext {
    box-sizing: content-box; width: 120px; max-width: none; margin-left: -60px;
    padding: 5px 0; border-radius: 6px; background: #000; color: #fff;
    font: 400 17px fantasy; white-space: normal; text-align: center; z-index: 10;
}
body.zg-reference .win_show:focus-within .tooltiptext { visibility: visible; }
@media (max-width: 600px) {
    body.zg-reference .div_rekor { font-size: 24px !important; padding: 10px 20px; }
    body.zg-reference .win_show.win-item { font-size: 17px !important; }
    body.zg-reference .zg-profile-header { flex-direction: row; }
}
/* Override the older !important card/grid layout only in the reference theme. */
html body.zg-reference .zg-profile-shell {
    width: 100% !important; max-width: none !important;
    margin: 0 auto !important; padding: 0 !important;
}
html body.zg-reference .centered > center:has(> .div_rekor) {
    display: block !important; grid-template-columns: none !important;
    gap: 0 !important; text-align: center !important;
}
html body.zg-reference .div_rekor {
    display: table !important; box-sizing: content-box !important;
    width: auto !important; max-width: calc(100% - 48px) !important;
    margin: 10px auto !important; padding: 10px 20px !important;
    border-radius: 0 !important; min-height: 0 !important;
}
html body.zg-reference .div_rekor img { width: 128px !important; height: 128px !important; }
html body.zg-reference .div_rekor .hof-row { display: block !important; margin: 0 0 4px !important; }
html body.zg-reference .container { width: 100% !important; max-width: none !important; margin: 0 auto !important; padding: 10px 0 !important; }
html body.zg-reference #user-wins-section {
    display: block !important; grid-template-columns: none !important;
    margin: 0 auto !important; padding: 0 !important; gap: 0 !important;
    width: 100% !important;
}
html body.zg-reference #win-count-header,
html body.zg-reference #user-wins-empty,
html body.zg-reference #win-bars-container { display: block !important; width: 100% !important; margin: 0 auto !important; }
html body.zg-reference .zg-names-panel { width: 100% !important; max-width: 100% !important; }
html body.zg-reference #nameTable { border-collapse: collapse !important; border-spacing: 0 !important; margin: 0 auto !important; }
html body.zg-reference #nameTable td { padding: 1px 7px !important; font-size: 16px !important; line-height: 1.025 !important; }
