[hidden]{display:none!important}.live-menu-link{display:block;padding:13px 15px;font-weight:650;color:inherit;border-radius:12px;text-decoration:none}.live-menu-link:hover{background:#eef0eb}.panel>h2{margin-bottom:20px}.profile-hero{display:flex;gap:24px;align-items:center;margin:20px 0 32px}.profile-hero .avatar-rank{width:96px;height:96px}.avatar-art{display:block}.avatar-art svg{display:block;width:100%;height:100%;border-radius:50%}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:16px 12px;border-bottom:1px solid var(--line,#e4e6df)}th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted,#687063)}.ranking-name{display:flex;align-items:center;gap:12px;min-width:130px}.ranking-name .avatar-rank{width:42px;height:42px;flex:none}.ranking-own{background:#f0f4e9}.distribution-row{display:grid;grid-template-columns:50px 1fr 36px;gap:10px;align-items:center;margin:12px 0;font-size:13px}.distribution-row meter{width:100%;height:28px;accent-color:#8d9f73}.empty-state{padding:24px 0;color:var(--muted,#687063)}.profile-session-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.segmented-control{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.segmented-control button{border:1px solid #dce0d5;border-radius:20px;padding:9px 14px;background:#fff;color:#56614e}.segmented-control button[aria-pressed=true]{background:#344039;color:#fff;border-color:#344039}.league-card{min-height:150px}.league-card .daily-winner{display:flex;align-items:center;gap:10px;margin-top:14px}.daily-winner .avatar-rank{width:42px;height:42px;flex:none}.daily-winner .winner-copy{display:grid;gap:4px;min-width:0;text-align:left}.league-card .winner-copy strong{font-size:16px}.winner-copy>span{font-size:13px;line-height:1.45;color:var(--muted,#687063)}.caption a{color:inherit}.profile-points-foot a{color:inherit}#league-actions{display:flex;gap:8px;flex-wrap:wrap}#load-status.error,.form-status.error{color:#9d3b34}.small-live-note{font-size:12px;color:#65705f}.profile-stats>div>strong{display:block;font-size:28px}.profile-stats>div>span{color:#687063;font-size:13px}.rank-wood{border-color:#a88a65}.rank-iron{border-color:#58615c}.rank-silver{border-color:#b2bac0}.rank-gold{border-color:#d2b159}.rank-diamond{border-color:#86c9d7}.avatar-rank{display:inline-block;box-sizing:border-box;border:4px solid transparent;border-radius:50%;padding:3px}.avatar-rank.rank-diamond{box-shadow:0 0 12px #99d6e8;animation:diamond-glow 3s ease-in-out infinite alternate}@keyframes diamond-glow{to{box-shadow:0 0 20px #7ebed8}}@media(prefers-reduced-motion:reduce){.avatar-rank.rank-diamond{animation:none}}@media(max-width:600px){.profile-hero{gap:14px}.profile-hero .avatar-rank{width:76px;height:76px}th,td{padding:12px 6px}.panel-heading{align-items:flex-start;flex-wrap:wrap}.view-heading{gap:15px}.profile-layout{grid-template-columns:1fr}.ranking-name{gap:6px}.ranking-name .avatar-rank{width:36px;height:36px}}
#daily-histogram{display:block;height:auto;min-height:90px;background:none;padding:0}.distribution-row{width:100%;grid-template-columns:58px minmax(0,1fr) 32px}.distribution-row meter{min-width:0}.league-card{display:block;text-align:left;padding:22px}.league-card>strong{display:block;font-size:20px}.league-card>p{margin:8px 0}.header-account .avatar-rank{width:34px;height:34px;padding:0;border-width:2px}dialog input:not([type]){width:100%;padding:12px 13px;font-size:14px;background:#fbfcf9;border:1px solid #dce3d3;margin:6px 0 18px}#create-league-form label{display:block}#invite-link{width:100%;margin-bottom:18px}@media(max-width:600px){th{font-size:9px;letter-spacing:.03em}.ranking-name{min-width:105px;font-size:12px}.view-heading h1{font-size:30px}.ranking-name .avatar-rank{width:32px;height:32px}table{font-size:12px}}
.results-layout{margin-bottom:24px}.league-cards{margin-bottom:24px}@media(min-width:901px){.results-layout>section:first-child{grid-column:2;grid-row:1}.results-layout>.histogram-panel{grid-column:1;grid-row:1}}

/* One compact goal; earned medals remain on the profile avatar. */
.profile-layout{align-items:start}
.medals-panel{padding:24px}
.medals-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.medals-heading h2{margin:0;font-size:21px}
.medal-language{font-size:11px;color:#75846b;white-space:nowrap}
.medal-rules{margin-top:14px;border-top:1px solid #e7ecdf;padding-top:12px}
.medal-rules summary{width:fit-content;cursor:pointer;font-size:11px;color:#617653;line-height:1.6;list-style-position:inside}
.medal-rules summary:focus-visible{outline:3px solid #779642;outline-offset:4px;border-radius:3px}
.medal-rules p{font-size:12px;line-height:1.8;color:#6c7863;margin-top:12px}
@media(max-width:600px){.medals-panel{padding:20px}.medals-heading h2{font-size:20px}}

.results-layout.guest-results{grid-template-columns:minmax(0,1fr)}

/* Keep the viewer's completed Daily distinct without changing the counts. */
.distribution-label{display:grid;justify-items:start;gap:4px;white-space:nowrap}
.distribution-you{padding:2px 6px;border:1px solid var(--theme-accent);border-radius:5px;color:var(--theme-accent);background:var(--theme-raised);font-size:9px;line-height:1.25;font-weight:750;text-transform:uppercase;letter-spacing:.03em}
.distribution-row meter{appearance:none;display:block;height:20px;border:0;border-radius:999px;background:var(--theme-raised);--distribution-fill:#96a782}
.distribution-row meter::-webkit-meter-bar{height:20px;border:0;border-radius:999px;background:var(--theme-raised);box-shadow:none}
.distribution-row meter::-webkit-meter-optimum-value{border-radius:999px;background:var(--distribution-fill)}
.distribution-row meter::-moz-meter-bar{border-radius:999px;background:var(--distribution-fill)}
.distribution-row.is-you{color:var(--theme-accent);font-weight:750}
.distribution-row.is-you meter{--distribution-fill:var(--theme-accent);box-shadow:0 0 0 2px var(--theme-accent),0 0 12px #77964230}
:root[data-theme="dark"] .distribution-row meter{--distribution-fill:#718166}
:root[data-theme="dark"] .distribution-row.is-you meter{--distribution-fill:var(--theme-accent);box-shadow:0 0 0 2px var(--theme-accent),0 0 14px #bed58b40}

/* Ranking averages add a column; keep any horizontal scroll inside its region. */
.leaderboard-panel,.league-detail{min-width:0}
.table-wrap{min-width:0;max-width:100%;overscroll-behavior-x:contain}
.table-wrap:focus-visible{outline:3px solid var(--theme-focus,#779642);outline-offset:3px}
.ranking-table:not([data-period="daily"]){min-width:560px}
.ranking-table th{vertical-align:bottom}
.ranking-table td{vertical-align:middle}
.ranking-table .ranking-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ranking-context{margin:12px 0}
.ranking-header-compact{display:none}
@media(max-width:600px){
 .ranking-table:not([data-period="daily"]){min-width:0;width:100%;table-layout:fixed}
 .ranking-table:not([data-period="daily"]) th,.ranking-table:not([data-period="daily"]) td{padding-left:4px;padding-right:4px}
 .ranking-table:not([data-period="daily"]) th{font-size:9px;line-height:1.4;letter-spacing:0;white-space:normal}
 .ranking-table:not([data-period="daily"]) th:nth-child(1){width:12%}
 .ranking-table:not([data-period="daily"]) th:nth-child(2){width:31%}
 .ranking-table:not([data-period="daily"]) th:nth-child(3){width:15%}
 .ranking-table:not([data-period="daily"]) th:nth-child(4){width:20%}
 .ranking-table:not([data-period="daily"]) th:nth-child(5){width:22%}
 .ranking-table:not([data-period="daily"]) .ranking-name{min-width:0;width:100%;gap:5px}
 .ranking-table:not([data-period="daily"]) .ranking-name .avatar-rank{width:28px;height:28px}
 .ranking-table:not([data-period="daily"]) .ranking-name>span:last-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ranking-table:not([data-period="daily"]) .ranking-header-full{display:none}
 .ranking-table:not([data-period="daily"]) .ranking-header-compact{display:inline}
 /* Reserve the Daily portrait space without widening the mobile table. */
 .ranking-table[data-period="daily"]{width:100%;table-layout:fixed}
 .ranking-table[data-period="daily"] th:nth-child(1){width:24%}
 .ranking-table[data-period="daily"] th:nth-child(2){width:40%}
 .ranking-table[data-period="daily"] th:nth-child(3){width:17%}
 .ranking-table[data-period="daily"] th:nth-child(4){width:19%}
 .ranking-table[data-period="daily"] .ranking-name{min-width:0;width:100%}
}
