:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#18212b;background:#f6f8fb;font-synthesis:none}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;overflow:hidden}body{margin:0;min-width:320px}button{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #267ac7;outline-offset:2px}h1,h2{margin:0}.shell{width:100%;max-width:1440px;height:100dvh;min-height:0;margin:0 auto;padding:14px 18px;overflow:hidden}h1{font-size:clamp(24px,2.5vw,32px);line-height:1.1;letter-spacing:-.035em}h2{font-size:16px;letter-spacing:-.02em}.rankings{display:flex;flex-direction:column}.table-scroll{flex:1;min-height:0;overflow:hidden;border:1px solid #aebdcb;border-radius:10px;background:#fff;box-shadow:0 3px 14px #17355a0a}.leaderboard-table{width:100%;height:100%;table-layout:fixed;border-collapse:collapse;font-size:16px}.leaderboard-table th,.leaderboard-table td{padding:4px 10px;border-bottom:1px solid #e8edf2;text-align:right;font-variant-numeric:tabular-nums;vertical-align:middle}.leaderboard-table thead tr{height:calc(7.14dvh - 2px)}.leaderboard-table th{background:#edf2f7;border-bottom-color:#aebdcb;color:#64748b;font-size:14px;font-weight:700}.leaderboard-table tr:last-child td{border-bottom:0}.leaderboard-table th:first-child,.leaderboard-table td:first-child{padding-left:22px}.leaderboard-table th:last-child,.leaderboard-table td:last-child{padding-right:22px}.leaderboard-table .rank-gold{background:#fff8e5}.leaderboard-table .rank-gold td:first-child{box-shadow:inset 3px 0 #dfba54}.leaderboard-table th:nth-child(-n+2),.leaderboard-table td:nth-child(-n+2){text-align:left}.leaderboard-table .rank-cell{width:8%;color:#64748b;font-weight:700}.leaderboard-table .team-cell{width:20%;font-weight:750;white-space:nowrap}.leaderboard-table .team-cell a{color:inherit;text-decoration:none}.leaderboard-table .team-cell a span{margin-left:6px;color:#819093}.leaderboard-table .points-cell{font-weight:800;color:#1464ab}.compact-label{display:none}.rank-row{cursor:pointer}.rank-row:hover{background:#f2f7fc}.rank-row.rank-gold:hover{background:#fff3d5}.team-page{display:grid;grid-template-columns:minmax(270px,310px) minmax(0,1fr);gap:18px}.team-sidebar{min-width:0;min-height:0;display:flex;flex-direction:column}.team-head{margin-bottom:14px}.back-link{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid #aab8c7;border-radius:999px;color:#38556e;font-size:12px;font-weight:700;text-decoration:none;background:#fff}.back-link:hover{border-color:#267ac7;color:#1464ab}.team-title{margin-top:12px}.team-title h1,.team-meta{display:block;font-size:clamp(24px,2.5vw,32px);line-height:1.12;letter-spacing:-.035em}.team-meta{color:#64748b;font-size:clamp(22px,2.2vw,28px);font-weight:600}.history{min-height:0;flex:1;display:flex;flex-direction:column}.section-head{flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 1px;margin-bottom:8px}.section-head span{color:#64748b;font-size:12px}.history-scroll{position:relative;min-height:0;flex:1}.history-scroll.has-more:after{position:absolute;right:0;bottom:0;left:0;z-index:1;height:48px;background:linear-gradient(to bottom,#f6f8fb00,#f6f8fb);content:"";pointer-events:none}.game-list{height:100%;display:grid;grid-auto-rows:max-content;gap:8px;overflow-y:auto;overscroll-behavior:contain;padding:0 5px 22px 0;scrollbar-color:#bec8d3 transparent}.game-card{display:grid;gap:8px;width:100%;padding:12px 13px;border:1px solid #18212b;border-radius:8px;text-align:left;cursor:pointer;box-shadow:0 2px 8px #17355a08;transition:opacity .12s ease}.game-card.as-white{background:#fff;color:#18212b}.game-card.as-black{background:#18212b;color:#fff}.game-card.faded{opacity:.38}.game-card.faded:hover,.game-card.faded:focus-visible{opacity:.82}.game-card[aria-pressed=true]:focus-visible{outline:none}.card-top,.card-bottom,.card-detail{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-top strong{font-size:15px}.result-pill{border-radius:100px;padding:4px 10px;color:#fff;font-size:11px;font-weight:750}.result-win{background:#16a34ae5}.result-loss{background:#dc2626e5}.result-draw{background:#64748b}.card-detail{justify-content:flex-start;font-size:12px}.card-bottom{font-size:11px;opacity:.72}.review{min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden;padding:12px 16px 6px;border:1px solid #e2e7ee;border-radius:10px;background:#fff;box-shadow:0 3px 14px #17355a0a}.review:empty{background:transparent;border-color:transparent;box-shadow:none}.review-empty{flex:1;display:grid;place-items:center;color:#64748b;font-size:15px;text-align:center}.review-head{flex:none;display:flex;justify-content:space-between;align-items:baseline;gap:10px}.review-head h2{font-size:18px}.review-head h2 span{color:#94a3b8;font-size:14px;font-weight:500}.review-result{font-size:17px;font-weight:800;white-space:nowrap}.review-meta{flex:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:5px 0 10px;color:#64748b;font-size:11px}.review-grid{flex:1;min-height:0;display:flex;gap:14px;align-items:start}.board-column{min-width:0;flex:0 1 min(65%,calc(100dvh - 178px));margin:0}.player{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:5px 8px;border:2px solid #e8edf2;border-radius:7px}.player.active{border-color:#267ac7;background:#eef7ff}.player span{display:grid;gap:1px}.player small{color:#64748b;font-size:9px;font-weight:750;letter-spacing:.09em}.player strong{font-size:13px}.player b{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}.black-player{margin-bottom:5px}.white-player{margin-top:5px}.board-wrap{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;align-items:stretch}.eval-bar{position:relative;overflow:hidden;border:1px solid #18212b;border-radius:4px;background:#18212b}.eval-white{position:absolute;bottom:0;left:0;right:0;background:#fff}.board{width:100%;aspect-ratio:1;overflow:hidden;border-radius:4px}.move-status{display:flex;align-items:center;gap:6px;min-height:32px;margin-top:7px;padding-top:6px;font-size:13px}.move-status span:first-child{font-weight:750}.move-status span:nth-child(2){color:#64748b}.eval-number{margin-left:auto;font-weight:750;font-variant-numeric:tabular-nums}.controls{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px}.controls button{display:grid;place-items:center;width:40px;height:36px;padding:0;border:1px solid #e2e7ee;border-radius:6px;background:#f8fafc;color:#18212b;font-size:20px;line-height:1;cursor:pointer}.controls button:hover:not(:disabled){background:#eef7ff}.controls button:disabled,.moves-pages button:disabled{opacity:.35;cursor:default}.controls span{min-width:62px;text-align:center;color:#64748b;font-size:13px;font-variant-numeric:tabular-nums}.moves-column{min-width:0;flex:1}.moves-panel{overflow:hidden;border:1px solid #e2e7ee;border-radius:8px}.moves-head{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 8px;background:#f8fafc;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.moves-pages{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;white-space:nowrap}.moves-pages button{width:20px;height:20px;padding:0;border:1px solid #d7e0e8;border-radius:4px;background:#fff;color:#334e64;font-size:15px;line-height:1;cursor:pointer}.moves-list{overflow:hidden}.move-row{display:grid;grid-template-columns:27px minmax(0,1fr) minmax(0,1fr);min-height:34px;border-bottom:1px solid #e8edf2}.move-row:last-child{border-bottom:0}.move-number{padding:8px 3px 5px 7px;color:#94a3b8;font-size:10px}.move-row.current-row .move-number{background:#eef7ff;color:#1464ab}.move-row:has(>.move-cell:nth-child(2):hover) .move-number,.move-row:has(>.move-cell:nth-child(2):focus-visible) .move-number{background:#f1f5f9;color:#1464ab}.move-row.current-row:has(>.move-cell:nth-child(2):hover) .move-number,.move-row.current-row:has(>.move-cell:nth-child(2):focus-visible) .move-number{background:#eef7ff}.move-cell{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:2px;padding:6px 4px;border:0;background:transparent;color:#18212b;text-align:left;cursor:pointer}.move-cell:hover{background:#f1f5f9}.move-cell.current{background:#eef7ff;color:#1464ab}.move-cell b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.move-cell small{color:#64748b;font-size:9px;white-space:nowrap;font-variant-numeric:tabular-nums}.mobile-tabs{display:none}.error{color:#8a3030}@media(max-width:1150px){.team-page{grid-template-columns:minmax(240px,270px) minmax(0,1fr);gap:12px}.review{padding:10px 12px 6px}.review-grid{gap:10px}.board-column{flex-basis:min(66%,calc(100dvh - 178px))}.move-cell{display:grid;gap:0}}@media(max-width:900px){.team-page{grid-template-columns:1fr;grid-template-rows:36px minmax(0,1fr);gap:7px;padding:8px}.mobile-tabs{display:flex;gap:7px}.mobile-tabs button{flex:1;border:1px solid #d3dee8;border-radius:7px;background:#fff;color:#476072;font-size:12px;font-weight:700;cursor:pointer}.mobile-tabs button.active{background:#18212b;color:#fff;border-color:#18212b}.mobile-tabs button:disabled{opacity:.4;cursor:default}.team-sidebar,.review{grid-column:1;grid-row:2}.mobile-history .review,.mobile-review .team-sidebar{display:none}.team-head{margin-bottom:10px}.review:empty{display:none}}@media(max-width:620px){.shell{padding:8px}.leaderboard-table{font-size:11px}.leaderboard-table thead tr{height:calc(7.14dvh - 1.14px)}.leaderboard-table th{font-size:10px;line-height:1.1;overflow-wrap:anywhere}.leaderboard-table th,.leaderboard-table td{padding:2px}.leaderboard-table th:first-child,.leaderboard-table td:first-child{padding-left:7px}.leaderboard-table th:last-child,.leaderboard-table td:last-child{padding-right:8px}.leaderboard-table .rank-cell{width:9%}.leaderboard-table .team-cell{width:18%}.leaderboard-table .team-cell a span,.full-label{display:none}.compact-label{display:inline}.review{padding:8px}.review-head h2{font-size:15px}.review-result{font-size:14px}.review-meta{margin:3px 0 7px;gap:4px 9px;font-size:10px}.review-grid{display:flex;flex-direction:column;gap:7px}.board-column{flex:none;width:min(100%,calc(100vw - 38px),calc(100dvh - 390px));margin:0 auto}.player{min-height:38px;padding:3px 6px}.player b{font-size:15px}.board-wrap{grid-template-columns:16px minmax(0,1fr);gap:5px}.move-status{min-height:23px;padding-top:3px;font-size:11px}.controls{margin-top:4px}.controls button{height:28px;width:32px}.moves-panel,.moves-column{width:100%}.move-cell{display:flex}.move-row{min-height:30px}}@media(max-height:650px){.shell{padding-top:7px;padding-bottom:7px}.leaderboard-table th,.leaderboard-table td{padding-top:3px;padding-bottom:3px}.leaderboard-table thead tr{height:calc(7.14dvh - 1px)}.team-title h1{font-size:21px}.team-meta{font-size:18px}.team-head{margin-bottom:7px}.game-card{padding:8px 10px;gap:4px}}@media(prefers-reduced-motion:reduce){.game-card{transition:none}}
