/* JahAnti Last 5 — scoped appearance, works on desktop and narrow screens. */
.ja-form{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap;vertical-align:middle;min-width:max-content}
.ja-form-pip{font-family:inherit;font-size:12px;font-weight:800;line-height:1;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:50%;width:25px;height:25px;min-width:25px;padding:0;cursor:pointer;box-shadow:inset 0 -1px 0 #0002;color:#fff;transition:transform .15s ease,box-shadow .15s ease}
.ja-form-pip.ja-form-W{background:#258551;color:#fff}.ja-form-pip.ja-form-D{background:#818890;color:#fff}.ja-form-pip.ja-form-L{background:#cb4545;color:#fff}
.ja-form-pip.is-admin{outline:2px solid #c59a38;outline-offset:1px}
.ja-form-pip:hover{transform:translateY(-2px);box-shadow:0 2px 8px #0003}.ja-form-pip:focus-visible{outline:3px solid #bd9b55;outline-offset:3px}
.ja-form-empty{color:#8f928e;font-size:13px}
.ja-form-compact .ja-form-pip{width:21px;height:21px;min-width:21px;font-size:11px}
body[data-game="fc"] .rankings-table{min-width:950px}
body[data-game="domino"] .rankings-table{min-width:690px}
.rank-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.rankings-table td.ja-form-cell,.rankings-table th.ja-form-heading{text-align:right;white-space:nowrap}
.rank-detail-top-three .ja-form-podium{display:flex;flex-direction:column;gap:6px;align-items:flex-end;min-width:0}
.rank-detail-top-three .ja-form-podium-stats{font-size:11px;opacity:.8;white-space:normal;text-align:right}
.rank-detail-top-three .ja-form{justify-content:flex-end}
.ja-t-standings-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.ja-t-table.ja-t-form-table{min-width:720px}
.ja-t-table .ja-form{justify-content:flex-end}.ja-t-table td.ja-form-t-cell{padding-right:13px}
.ja-t-form-help{font-size:10px;color:#877862;line-height:1.4;margin:7px 12px 11px}
.ja-form-dialog{border:1px solid #d9c6a6;border-radius:13px;width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 40px);color:#2f291f;background:#fffaf0;padding:20px;box-shadow:0 16px 56px #0005}
.ja-form-dialog::backdrop{background:rgba(12,12,12,.68)}
.ja-form-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e6dcc7;padding-bottom:10px;margin-bottom:12px}
.ja-form-dialog-heading h3{font-size:18px;margin:0;color:#2f291f}.ja-form-dialog-heading button{border:1px solid #b99b67;background:#2d2820;color:#fff;border-radius:7px;padding:7px 12px;cursor:pointer}
.ja-form-dialog-body{display:grid;gap:8px}.ja-form-dialog-body p{margin:0;font-size:13px;line-height:1.45;color:#302b22}
.ja-form-dialog-body .ja-form-detail-outcome{font-size:17px;font-weight:800}.ja-form-detail-outcome.ja-form-W{color:#1a7a49}.ja-form-detail-outcome.ja-form-L{color:#b83d3d}.ja-form-detail-outcome.ja-form-D{color:#656c73}
.ja-form-dialog-body .ja-form-detail-score{font-size:20px;font-weight:800}.ja-form-dialog-body .ja-form-detail-date{color:#7a6f5f}
.ja-form-dialog-body .ja-form-detail-note{font-size:12px;color:#7e5f28;background:#f6e9d0;border-radius:6px;padding:9px}
@media(max-width:720px){.rank-detail-top-three .ja-form-podium{align-items:flex-start}.ja-form-pip{width:23px;height:23px;min-width:23px}.ja-t-table.ja-t-form-table{min-width:700px}}
@media(prefers-reduced-motion:reduce){.ja-form-pip{transition:none}}


/* v1.1.1 — top-three stats are the primary information, followed by Last 5
   IN THE SAME HORIZONTAL STRIP. Never wrap form under the statistics. */
.rank-detail-top-three .ja-form-podium{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-end;
  flex-wrap:nowrap;gap:15px;width:100%;max-width:100%;min-width:0;
  overflow-x:auto;overflow-y:hidden;padding:5px 3px;scrollbar-width:thin;
}
.rank-detail-top-three .ja-form-podium-stats{
  display:inline-flex;align-items:center;gap:3px;flex-shrink:0;
  text-align:center;white-space:nowrap;
}
.ja-podium-stat{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-width:46px;padding:3px 6px;border-radius:6px;
}
.ja-podium-stat-value{font-size:20px;line-height:1.12;font-weight:900;font-variant-numeric:tabular-nums;color:#242321}
.ja-podium-stat-label{font-size:10px;line-height:1.25;letter-spacing:.04em;font-weight:800;color:#796a53}
.ja-podium-recent{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;padding-left:13px;border-left:1px solid #bba77f;white-space:nowrap}
.ja-podium-recent-label{font-size:10px;letter-spacing:.025em;font-weight:800;color:#685c46}
.ja-podium-recent .ja-form{flex-shrink:0;justify-content:flex-start}
body[data-game="fc"] .rank-detail-top-three{grid-template-columns:34px minmax(135px,1fr) minmax(0,57%)}
body[data-game="domino"] .rank-detail-top-three{grid-template-columns:34px minmax(135px,1fr) minmax(0,50%)}
body[data-game="fc"] .rank-detail-top-three .ja-form-podium,
body[data-game="domino"] .rank-detail-top-three .ja-form-podium{overscroll-behavior-x:contain}

/* Recent results: five latest games maximum, visible without an auto-ticker. */
.ja-t-results{max-height:none;overflow:visible}
.ja-t-result-line:last-child{border-bottom:0}

/* Upcoming match cards: continuous side-by-side horizontal carousel.
   Auto-motion is enabled ONLY if the full set is wider than the viewport.
   The original set remains visible and stationary when all cards fit. */
.ja-t-fixtures-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.ja-t-fixtures-head h4{font-size:15px;font-weight:800;margin:0}
.ja-t-fixtures-controls{display:flex;align-items:center;gap:12px;margin-left:auto}
.ja-t-fixtures-summary{font-size:11px;color:#7c6b56;font-weight:700;font-variant-numeric:tabular-nums}
.ja-t-fixtures-toggle{font:inherit;font-size:11px;font-weight:700;background:#f9f4ea;color:#634d27;border:1px solid #d9c9a9;border-radius:7px;padding:7px 9px;cursor:pointer}
.ja-t-fixtures-toggle:hover{background:#eddfc5}
.ja-t-fixtures-toggle:focus-visible{outline:3px solid #a78038;outline-offset:2px}
.ja-t-fixtures-toggle[hidden]{display:none!important}
.ja-t-available-viewport{
  overflow-x:auto;overflow-y:hidden;max-width:100%;
  overscroll-behavior-x:contain;scroll-behavior:auto;scrollbar-width:none;
  -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;
  padding:3px 0 7px;outline-offset:2px;
}
.ja-t-available-viewport::-webkit-scrollbar{display:none}
.ja-t-available-viewport:focus-visible{outline:3px solid #a78038}
.ja-t-available-track{display:flex;width:max-content;align-items:stretch}
.ja-t-fixture-group-set{display:flex;gap:12px;padding-right:12px;align-items:stretch}
.ja-t-upcoming-fixture{
  box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:11px;
  flex:0 0 264px;width:264px;min-height:92px;
  padding:13px 14px;background:#f7f1e7;border:1px solid #e7d8be;
  border-radius:11px;box-shadow:0 2px 5px #00000005;
}
.ja-t-fixture-group{font-size:10px;font-weight:800;letter-spacing:.09em;color:#a07831;white-space:nowrap}
.ja-t-fixture-players{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;width:100%}
.ja-t-fixture-player{font-size:12px;line-height:1.35;font-weight:800;color:#262320;min-width:0;flex:1 1 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ja-t-fixture-player:last-child{text-align:right}
.ja-t-fixture-vs{font-size:10px;line-height:1;font-weight:900;color:#997232;background:#fffaf1;padding:6px 5px;border-radius:6px;flex-shrink:0}
@media(max-width:850px){
  body[data-game="fc"] .rank-detail-top-three{grid-template-columns:26px minmax(110px,1fr) minmax(0,57%);gap:9px}
  body[data-game="domino"] .rank-detail-top-three{grid-template-columns:26px minmax(110px,1fr) minmax(0,50%);gap:9px}
  .ja-podium-stat{min-width:40px;padding:3px 4px}.ja-podium-stat-value{font-size:18px}
  .rank-detail-top-three .ja-form-podium{gap:10px}
}
@media(max-width:560px){
  body[data-game="fc"] .rank-detail-top-three,
  body[data-game="domino"] .rank-detail-top-three{grid-template-columns:22px minmax(90px,1fr) minmax(0,47%);gap:7px}
  .ja-podium-stat-value{font-size:17px}
  .ja-t-upcoming-fixture{flex-basis:242px;width:242px;min-height:88px;padding:11px 12px;gap:9px}
  .ja-t-fixture-player{font-size:12px}
  .ja-t-fixtures-controls{gap:7px}
}
@media(prefers-reduced-motion:reduce){
  .ja-t-available-viewport{scroll-behavior:auto}
}
