/* Public daily standings use the same cream card table as home and leagues. */
body:has(.rankings-page) { background: #fff9ed; color: #193b3e; }
body:has(.rankings-page)::before { background: radial-gradient(#b29e771b .8px,transparent .8px) 0 0/7px 7px; }
.rankings-page { padding-block: 42px 58px; color: #193b3e; font-size: 15px; line-height: 1.6; }
.rankings-page * { min-width: 0; }
.rankings-page :is(h1,h2,h3) { font-family: 'Arial Rounded MT Bold','Trebuchet MS',sans-serif; color: #193b3e; letter-spacing: -.04em; }
.rankings-page button { min-height: 44px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.rankings-page button:focus-visible { outline: 3px solid #086abe; outline-offset: 4px; }
.rankings-page .button { gap: 9px; padding: 12px 17px; border-radius: 12px; font-weight: 800; }
.rankings-page .button-primary { color: #193b3e; background: #ffdc51; border: 1px solid #b3994b; box-shadow: 0 3px 0 #b29540; }
.rankings-page .button-primary:hover { background: #ffe674; }
.rankings-page .button .icon { width: 19px; height: 19px; flex-shrink: 0; }
.ranking-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px 36px; border: 1px solid #d0dcc6; border-radius: 23px; background: radial-gradient(ellipse at 100% 0,#d9e8cf8c,transparent 62%),#edf2e5; box-shadow: 0 4px 0 #e0e5d2; }
.ranking-hero > div { flex: 1; }
.ranking-kicker { display: block; color: #426b53; font-size: 13px; font-weight: 800; letter-spacing: .055em; line-height: 1.5; }
.ranking-hero h1 { font-size: clamp(34px,4.2vw,49px); letter-spacing: -.05em; line-height: 1.1; margin: 13px 0 15px; }
.ranking-hero p { color: #526b59; font-size: 16px; line-height: 1.6; margin: 0; max-width: 570px; }
.ranking-hero-trophy { display: grid; place-items: center; width: 96px; height: 115px; flex-shrink: 0; border: 5px solid #fffdf4; outline: 1px solid #b9ccb0; border-radius: 15px; background: #267f66; color: #ffe59d; box-shadow: 0 4px 0 #bdcbae,0 8px 14px #193b3e14; transform: rotate(8deg); }
.ranking-hero-trophy > .icon { width: 54px; height: 54px; }
.ranking-controls { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 28px 0 18px; }
.ranking-periods,.ranking-scorings { display: flex; gap: 5px; padding: 5px; border: 1px solid #d0daca; background: #eaf0e3; border-radius: 13px; }
.ranking-periods button,.ranking-scorings button { padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; color: #4b6655; background: transparent; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 9px; }
.ranking-periods button:hover,.ranking-scorings button:hover { background: #f8fbf1; color: #193b3e; }
.ranking-periods [aria-pressed=true] { background: #276a54; border-color: #225b49; color: #fffdf4; box-shadow: 0 2px 0 #194b3b; }
.ranking-periods [aria-pressed=true]:hover { background: #276a54; color: #fffdf4; }
.ranking-scorings [aria-pressed=true] { background: #ffdf75; border-color: #d2b254; color: #193b3e; box-shadow: 0 2px 0 #c2a452; }
.ranking-scorings [aria-pressed=true]:hover { background: #ffdf75; }
.ranking-scorings .icon { height: 20px; width: 20px; flex-shrink: 0; }
.ranking-period-caption { display: flex; justify-content: space-between; align-items: center; gap: 13px; flex-wrap: wrap; margin-bottom: 23px; color: #526b5b; font-size: 14px; }
.ranking-period-caption p { display: flex; align-items: center; gap: 9px; margin: 0; }
.ranking-period-caption .icon { width: 19px; height: 19px; flex-shrink: 0; }
.ranking-period-caption > span { color: #735824; background: #f7ecd1; border: 1px solid #e2d1a9; border-radius: 20px; padding: 3px 11px; font-size: 13px; }
.ranking-account,.ranking-personal { display: flex; align-items: center; gap: 20px; border: 1px solid #d4ddc9; border-radius: 17px; padding: 23px 25px; background: #fffdf5; margin-bottom: 27px; }
.ranking-account h2,.ranking-personal h2 { font-size: 22px; line-height: 1.3; margin: 0 0 8px; overflow-wrap: anywhere; }
.ranking-account p,.ranking-personal p { color: #566d5c; font-size: 14px; line-height: 1.6; margin: 0; }
.ranking-account .button { margin-left: auto; flex-shrink: 0; white-space: normal; text-align: center; }
.ranking-account-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 59px; background: #e8f0e0; border: 1px solid #cbdabc; border-radius: 12px; color: #367151; }
.ranking-account-icon > .icon { width: 29px; height: 29px; }
.ranking-personal { border-color: #c6d5b8; background: #eaf2e2; justify-content: space-between; box-shadow: inset 4px 0 0 #377856; }
.ranking-personal h2 { margin-top: 7px; font-size: 28px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ranking-personal h2 > span { font-size: 20px; }
.ranking-personal-score { flex-shrink: 0; text-align: right; }
.ranking-personal-score > strong { display: block; color: #245e45; font-variant-numeric: tabular-nums; font-size: 28px; line-height: 1.35; }
.ranking-personal-score > span { font-size: 14px; color: #4a654f; }
.ranking-board-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 0 0 16px; }
.ranking-board-heading h2 { font-size: 27px; line-height: 1.25; margin: 0; }
.ranking-board-heading p { margin: 0; font-size: 14px; color: #526b5a; }
.ranking-table-wrap { border: 1px solid #d4dcc8; border-radius: 16px; overflow: hidden; background: #fffdf7; box-shadow: 0 4px 0 #e4e3d3; }
.ranking-table { border-collapse: collapse; width: 100%; table-layout: fixed; color: #193b3e; font-size: 15px; text-align: left; }
.ranking-table th,.ranking-table td { padding: 17px 22px; border-bottom: 1px solid #e0e5d6; vertical-align: middle; }
.ranking-table thead th { background: #edf2e6; color: #4d6756; font-size: 14px; font-weight: 800; padding-block: 14px; }
.ranking-table tbody th { font-weight: 700; }
.ranking-table tbody tr:last-child > * { border-bottom: 0; }
.ranking-table .ranking-position { width: 91px; text-align: center; padding-left: 14px; padding-right: 14px; }
.ranking-table .ranking-mark { width: 164px; text-align: right; }
.ranking-place { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 37px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #4a6a56; }
.ranking-place > .icon { width: 21px; height: 21px; }
.ranking-top-1 { background: #fff3ca; }
.ranking-top-2 .ranking-place-medal { color: #4a6370; }
.ranking-top-3 .ranking-place-medal { color: #905329; }
.ranking-top-1 .ranking-place-medal { color: #795418; }
.ranking-table tr.ranking-is-me { background: #e7f1df; box-shadow: inset 4px 0 0 #377b55; }
.ranking-player-name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 16px; }
.ranking-you { font-size: 14px; line-height: 1.4; font-weight: 800; color: #245e3e; background: #d4e7c5; padding: 2px 7px; border-radius: 5px; }
.ranking-player-detail { display: block; color: #576c59; font-size: 14px; font-weight: 400; line-height: 1.5; margin-top: 4px; }
.ranking-mark > strong { font-size: 19px; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; color: #2b5844; }
.ranking-mark > span { display: block; font-size: 14px; line-height: 1.5; color: #576c59; }
.ranking-state { padding: 42px 24px; text-align: center; background: #fffdf5; border: 1px dashed #b9caae; border-radius: 19px; }
.ranking-state h2 { font-size: 28px; line-height: 1.25; margin: 20px 0 13px; }
.ranking-state p { font-size: 15px; line-height: 1.65; color: #526b59; max-width: 570px; margin: 0 auto 24px; overflow-wrap: anywhere; }
.ranking-state .button { margin-inline: auto; }
.ranking-state .spinner { display: inline-block; width: 29px; height: 29px; color: #397a56; }
.ranking-state-icon { display: inline-grid; place-items: center; width: 66px; height: 75px; background: #e9f0de; color: #407054; border: 3px solid #fffdf5; outline: 1px solid #cad7bd; border-radius: 13px; box-shadow: 0 3px 0 #d5dec8; transform: rotate(-7deg); }
.ranking-state-icon > .icon { width: 35px; height: 35px; }
.ranking-error { border-color: #d3b2a1; background: #fff6ed; }
.ranking-error .ranking-state-icon { background: #f9e4d8; color: #924c3a; outline-color: #dab6a2; box-shadow: 0 3px 0 #e6c9b8; }
.ranking-rules { margin-top: 35px; padding: 27px 29px; border: 1px solid #d4dbc7; border-radius: 18px; background: #eef1e5; }
.ranking-rules h2 { font-size: 25px; line-height: 1.3; margin: 0 0 25px; }
.ranking-rules-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
.ranking-rules-grid > div > span { display: inline-flex; color: #357153; }
.ranking-rules-grid .icon { width: 24px; height: 24px; }
.ranking-rules h3 { font-size: 18px; line-height: 1.35; margin: 11px 0 8px; }
.ranking-rules p { font-size: 14px; color: #52664f; line-height: 1.65; margin: 0; }
.ranking-rules .ranking-rules-footnote { padding-top: 21px; margin-top: 24px; border-top: 1px solid #cfd9c1; color: #52664f; }
@media (max-width: 760px) {
  .ranking-controls { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ranking-periods,.ranking-scorings { width: 100%; }
  .ranking-periods > button,.ranking-scorings > button { flex: 1; }
  .ranking-account { flex-wrap: wrap; gap: 15px; }
  .ranking-account > div { flex: 1; min-width: 180px; }
  .ranking-account .button { margin-left: 0; }
  .ranking-rules-grid { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .ranking-rules-grid > div { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 4px 13px; }
  .ranking-rules-grid > div > span { grid-row: 1/3; }
  .ranking-rules h3 { margin: 0; }
  .ranking-rules-grid p { grid-column: 2; }
}
@media (max-width: 480px) {
  .rankings-page { width: calc(100% - 32px); padding-top: 28px; }
  .ranking-hero { padding: 24px 19px; gap: 12px; align-items: flex-start; }
  .ranking-hero-trophy { width: 51px; height: 68px; border-width: 3px; border-radius: 10px; box-shadow: 0 3px 0 #bdcbae; margin-top: 4px; }
  .ranking-hero-trophy > .icon { width: 30px; height: 30px; }
  .ranking-kicker { font-size: 12px; letter-spacing: .035em; }
  .ranking-hero h1 { font-size: 34px; margin-top: 11px; }
  .ranking-hero p { font-size: 14px; }
  .ranking-controls { margin-top: 24px; }
  .ranking-periods button,.ranking-scorings button { padding: 10px 8px; font-size: 14px; min-height: 46px; }
  .ranking-scorings button { gap: 7px; }
  .ranking-scorings .icon { width: 18px; height: 18px; }
  .ranking-period-caption { align-items: flex-start; gap: 9px; }
  .ranking-period-caption p { align-items: flex-start; line-height: 1.6; }
  .ranking-period-caption .icon { margin-top: 2px; }
  .ranking-account,.ranking-personal { padding: 19px 16px; }
  .ranking-account { display: grid; grid-template-columns: 41px minmax(0,1fr); gap: 14px 12px; }
  .ranking-account-icon { width: 41px; height: 49px; }
  .ranking-account-icon > .icon { width: 25px; height: 25px; }
  .ranking-account > div { min-width: 0; }
  .ranking-account .button { grid-column: 1/-1; width: 100%; }
  .ranking-account h2 { font-size: 21px; }
  .ranking-personal { gap: 14px; flex-wrap: wrap; }
  .ranking-personal h2 { font-size: 26px; gap: 8px; }
  .ranking-personal-score { margin-left: auto; }
  .ranking-personal-score > strong { font-size: 25px; }
  .ranking-board-heading { display: block; }
  .ranking-board-heading h2 { font-size: 25px; }
  .ranking-board-heading p { margin-top: 5px; }
  .ranking-table th,.ranking-table td { padding: 15px 11px; }
  .ranking-table .ranking-position { width: 49px; padding-left: 5px; padding-right: 5px; }
  .ranking-table .ranking-mark { width: 104px; padding-left: 4px; }
  .ranking-table thead th { font-size: 14px; padding-block: 13px; }
  .ranking-place { font-size: 16px; gap: 3px; flex-direction: column; }
  .ranking-place > .icon { width: 18px; height: 18px; }
  .ranking-player-name { font-size: 15px; gap: 5px; }
  .ranking-mark > strong { font-size: 15px; }
  .ranking-player-detail,.ranking-mark > span { font-size: 14px; }
  .ranking-rules { padding: 23px 19px; }
  .ranking-rules h2 { font-size: 24px; }
  .ranking-state { padding: 30px 18px; }
  .ranking-state h2 { font-size: 25px; }
  .ranking-state p { font-size: 14px; }
  .ranking-state .button { width: 100%; }
}
@media (max-width: 360px) {
  .ranking-hero { padding-inline: 17px; gap: 10px; }
  .ranking-hero h1 { font-size: 31px; }
  .ranking-hero-trophy { width: 43px; height: 59px; }
  .ranking-hero-trophy > .icon { width: 26px; height: 26px; }
  .ranking-periods button { padding-inline: 5px; }
  .ranking-table .ranking-position { width: 45px; }
  .ranking-table .ranking-mark { width: 100px; padding-right: 8px; }
  .ranking-table th,.ranking-table td { padding-inline: 8px; }
}
