/* Shared Chess records: restrained surfaces, visible actions, one mobile scroll. */
body.chess-hub-open{overflow:hidden}
.hub-own-value{margin-left:auto;color:#dec18c;font-size:18px;font-variant-numeric:tabular-nums}
.chess-hub{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(780px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #b4b99c55;border-radius:18px;background:#1c2520;color:#eee9dc;box-shadow:0 25px 90px #0009;font:13px/1.5 system-ui,sans-serif;scrollbar-gutter:stable}
.chess-hub *{box-sizing:border-box}.chess-hub[open]{animation:hub-enter 140ms ease-out}.chess-hub::backdrop{background:#080c09b8;backdrop-filter:blur(5px)}
.chess-hub:not([open]){display:none}.chess-hub [hidden]{display:none!important}
.hub-header{position:sticky;top:0;z-index:2;background:#1c2520;padding:18px 22px 12px;border-bottom:1px solid #ffffff16}
.hub-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.hub-title h2{margin:0;font:500 30px/1.2 Georgia,serif;color:#f3eddf}
.hub-clock-note{margin:9px 0 0;color:#dec18c;font-size:11px}
.chess-hub button,.chess-hub a.hub-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #aaba9b55;border-radius:9px;background:#ffffff05;color:#e6e8d9;font:650 12px/1.35 system-ui,sans-serif;cursor:pointer;text-decoration:none;box-shadow:none}
.chess-hub button:hover,.chess-hub a.hub-primary:hover{background:#b5d69d12;border-color:#b5d69d}.chess-hub button:disabled{opacity:.55;cursor:default}.chess-hub :focus-visible{outline:3px solid #dec18c;outline-offset:2px}
.chess-hub .hub-close{width:44px;padding:7px;font-size:18px}.hub-tabs{display:flex;gap:6px;margin-top:14px}.hub-tabs button{flex:1;font-size:13px}.hub-tabs button[aria-selected=true],.hub-segments button[aria-pressed=true]{color:#b5d69d;border-color:#b5d69d;background:#b5d69d16}
.hub-body{padding:16px 22px 18px}.hub-panel{margin-top:18px;min-width:0}.hub-segments{display:flex;gap:6px;flex-wrap:wrap}.hub-segments button{flex:1;min-width:0;white-space:nowrap}
.hub-identity{display:flex;align-items:center;gap:11px;margin:0 0 18px}.hub-avatar{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #dec18c66;border-radius:12px;background:linear-gradient(145deg,#dec18c18,#b5d69d08)}.hub-symbol{font-size:25px;line-height:1;color:#dec18c}.hub-identity>div{min-width:0;flex:1}.hub-identity strong,.hub-identity small{display:block;overflow-wrap:anywhere}.hub-identity strong{font-size:17px;color:#f3eddf}.hub-identity small{font-size:11px;color:#bdc8b6;margin-top:3px}.hub-level{flex:none;border:1px solid #b5d69d55;padding:5px 9px;border-radius:20px;color:#b5d69d;font-size:11px}
.hub-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.hub-metric{min-width:0;padding:12px 8px;border:1px solid #ffffff1c;border-radius:10px;text-align:center;background:#ffffff03}.hub-metric strong,.hub-metric span{display:block}.hub-metric strong{color:#dec18c;font:650 24px/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hub-metric span{color:#bbc7b4;font-size:11px;margin-top:5px}
.hub-result-bar{display:flex;gap:3px;height:6px;margin-top:15px;overflow:hidden;border-radius:5px}.hub-result-bar span{flex-basis:0;min-width:0;background:#a8c78d}.hub-result-bar [data-result=draw]{background:#9fa99e}.hub-result-bar [data-result=loss]{background:#d59d8b}.hub-outcomes{display:flex;justify-content:center;gap:20px;margin:6px 0 0;font-size:11px;color:#bcc8b4;font-variant-numeric:tabular-nums}
.hub-history{margin-top:22px;padding:15px;border:1px solid #ffffff1c;border-radius:12px;background:#111c1540}.hub-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}.chess-hub h3{margin:0;color:#eceadd;font:650 14px/1.4 system-ui,sans-serif}.hub-chart-heading .hub-segments{gap:4px;flex-wrap:nowrap}.hub-chart-heading .hub-segments button{padding:6px 9px;min-width:38px;font-size:11px}.hub-chart{display:block;width:100%;height:auto;overflow:visible}.hub-grid{stroke:#d8dfca20;stroke-width:1}.hub-axis{fill:#bdc8b6;font:12px system-ui,sans-serif}.hub-line{stroke:#b5d69d;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.hub-point{fill:#dec18c;stroke:#1c2520;stroke-width:2}.hub-history input[type=range]{display:block;width:100%;height:44px;margin:0;accent-color:#b5d69d}.hub-chart-value{display:block;text-align:center;color:#d9dfcd;font-size:11px;font-variant-numeric:tabular-nums;min-height:18px}
.hub-note{color:#bfc9b7;font:11px/1.55 system-ui,sans-serif;margin:10px 0;overflow-wrap:anywhere}.hub-activity{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.hub-activity .hub-metric{flex:1;min-width:95px}.hub-activity .hub-metric strong{font-size:19px}
.hub-shared-best{display:flex;align-items:center;gap:13px;padding:11px;border:1px solid #dec18c44;border-radius:10px;margin:12px 0}.hub-shared-best .hub-metric{min-width:100px;border:0;padding:3px 8px}.hub-shared-best .hub-note{flex:1;margin:0}
.hub-disclosure{border-top:1px solid #ffffff1c;margin-top:16px;padding-top:5px}.chess-hub summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 1px;color:#d6dabf;cursor:pointer;font-size:12px}.hub-disclosure>summary::after{content:'＋';margin-left:auto;color:#b5d69d}.hub-disclosure[open]>summary::after{content:'−'}.hub-disclosure .hub-note{margin:8px 0}
.hub-history-table,.hub-scores-table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:12px}.hub-scores-table caption{text-align:left;font-size:11px;color:#bfc9b7;padding:12px 0}.hub-history-table th,.hub-history-table td,.hub-scores-table th,.hub-scores-table td{padding:10px 6px;border-bottom:1px solid #ffffff1a;overflow-wrap:anywhere;text-align:left}.hub-history-table th,.hub-scores-table th{font-size:10px;color:#bfc9b7;font-weight:650}.hub-scores-table th:first-child,.hub-scores-table td:first-child{width:42px}.hub-scores-table th:last-child,.hub-scores-table td:last-child{width:72px;text-align:right;white-space:nowrap}.hub-scores-table tr[data-self=true]{background:#b5d69d12}.hub-scores-table td small{display:block;color:#b5d69d;font-size:10px}.hub-history-table td:last-child{text-align:right}.hub-history-table th:first-child{width:45%}
.hub-own-rank{display:flex;align-items:center;gap:10px;margin:12px 0 0;border:1px solid #b5d69d55;border-radius:9px;background:#b5d69d0b;padding:10px 12px;color:#c6cfba}.hub-own-rank strong{color:#dec18c;font-size:21px;font-variant-numeric:tabular-nums}.hub-cup{display:inline-block;width:25px;height:29px;vertical-align:middle;color:#e6c278}.hub-cup[data-place="2"]{color:#bfcad4}.hub-cup[data-place="3"]{color:#cc9d73}.hub-podium-award{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #dec18c44;border-radius:10px;margin:15px 0;background:#dec18c09}.hub-podium-award .hub-cup{width:40px;height:45px}
.hub-xp{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #b5d69d44;padding:13px;border-radius:10px;margin-bottom:20px}.hub-xp strong{color:#dec18c;font-size:18px}.hub-xp>span{margin-left:auto;font-size:12px;color:#becbb3}.chess-hub progress{width:100%;height:7px;accent-color:#b5d69d}.hub-team-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.hub-bot-award{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:11px 2px;border:1px solid #ffffff1b;border-radius:9px;background:#ffffff03;color:#9da794}.hub-bot-award small{font-size:10px}.hub-bot-award>span:last-child{font-size:10px}.hub-bot-award[data-earned=true]{border-color:#b5d69d70;background:#b5d69d0c;color:#d9e1ca}.hub-bot-award[data-earned=false] .hub-symbol{color:#89947f}
.hub-awards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hub-achievement{align-self:start;border:1px solid #ffffff25;padding:4px 12px;border-radius:10px;background:#ffffff03}.hub-achievement[data-earned=true]{border-color:#b5d69d55}.hub-achievement summary>span:last-child{min-width:0}.hub-achievement strong,.hub-achievement small{display:block}.hub-achievement strong{color:#e8e9d7;font-size:12px}.hub-achievement small{color:#b8c5ac;font-size:10px;margin-top:3px}.hub-achievement[data-earned=false] .hub-symbol{color:#8d9b7e}
.hub-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:28px 15px;border:1px solid #ffffff1c;border-radius:12px;margin:12px 0}.hub-empty>.hub-symbol{font-size:36px}.hub-empty .hub-note{max-width:280px;margin:0 0 7px}.hub-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #ffffff1c;margin-top:18px;padding-top:12px;font-size:10px;color:#bdc8b6}.hub-footer>span{flex:1;min-width:140px;overflow-wrap:anywhere}
.hub-home-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 15px}.hub-home-links button{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;padding:9px 6px;border:1px solid #b4b99c55;border-radius:9px;background:#b5d69d08;color:#dec18c;font:650 12px/1.3 system-ui,sans-serif;cursor:pointer}.hub-home-links button:hover{background:#b5d69d16}.hub-home-links button:focus-visible{outline:3px solid #dec18c;outline-offset:2px}.chess-app-destination[data-chess-hub]{width:100%;text-align:left}.chess-app-destination[data-chess-hub][hidden]{display:none!important}
.chess-app-destinations:has([data-chess-hub]:not([hidden]))>.chess-app-destination{grid-column:auto}
@keyframes hub-enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:620px){.chess-hub{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);max-height:calc(100dvh - 24px);border-radius:16px}.hub-header{padding:14px 14px 10px}.hub-title h2{font-size:27px}.hub-body{padding:13px 14px 16px}.hub-tabs{gap:5px}.hub-tabs button{font-size:12px;padding-inline:5px}.hub-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hub-metric{padding:11px 6px}.hub-metric strong{font-size:24px}.hub-history{padding:11px 7px}.hub-chart-heading{flex-wrap:wrap;padding-inline:4px;gap:5px}.hub-chart-heading .hub-segments{margin-left:auto}.hub-history .hub-note{padding-inline:4px}.hub-team-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hub-awards{grid-template-columns:1fr}.hub-panel>.hub-segments{flex-wrap:nowrap;gap:4px}.hub-panel>.hub-segments button{padding-inline:5px;font-size:11px}.hub-scores-table th:last-child,.hub-scores-table td:last-child{width:62px}.hub-history-table{font-size:11px}}
@media(prefers-reduced-motion:reduce){.chess-hub[open]{animation:none}}
@media(max-width:620px){.hub-axis{font-size:20px}}
