:root{--public-ink:#121a2b;--public-panel:#1c2740;--public-bar:#0b1220;--public-line:#d9e0eb;--public-muted:#5a6478;--public-red:#d2362d}
body{background-color:#eef1f6;background-image:linear-gradient(#2e3e6005 1px,transparent 1px),linear-gradient(90deg,#2e3e6005 1px,transparent 1px);background-size:32px 32px;min-height:100svh;display:flex;flex-direction:column}body.community>main{width:100%;flex:1;max-width:1160px;padding:0 24px 40px}
header.site-header{padding:0;min-height:86px;background:var(--public-ink);color:#fff;border-bottom:5px solid var(--public-bar);position:relative;top:auto;z-index:10;display:block}
.site-header-inner{max-width:1160px;min-height:81px;padding:16px 24px;margin:auto;display:flex;align-items:center;gap:28px;flex-wrap:wrap}
a.site-brand{display:inline-flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-family:RibbonTitle,WalkerDisplay,system-ui,sans-serif;font-size:24px;flex-shrink:0;letter-spacing:-.5px}.site-brand>img{width:44px;height:44px;object-fit:contain;background:#2e3e60;border-radius:10px}.site-brand strong{font-weight:800}.site-brand small{display:block;color:#b8c2d6;font:10px RibbonBody,Walker,system-ui,sans-serif;letter-spacing:2px;margin-top:2px}
nav.site-links{margin:0 0 0 auto;padding:0;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;background:transparent;border:0;border-radius:0;overflow:auto}
.site-links a{font:13px RibbonBody,Walker,system-ui,sans-serif;line-height:1.4;white-space:nowrap;color:#b8c2d6;text-decoration:none;padding:11px 12px;border-bottom:3px solid transparent;border-radius:4px 4px 0 0}.site-links a:hover{color:#fff;background:#1c2740}.site-links a[aria-current=page]{color:#fff;border-bottom-color:#ef5448;background:#1c2740}.site-header #logout{min-height:40px;padding:8px 12px;font-size:12px;margin:0}
footer.site-footer{max-width:none;width:100%;margin-top:auto;margin-inline:0;padding:28px 0;background:var(--public-ink);border-top:5px solid var(--public-bar);color:#b8c2d6;font-size:12px}.site-footer-inner,.site-footer>.wrap{max-width:1160px;margin:auto;padding:0 24px}.footer-shell{display:flex;gap:28px;align-items:center;justify-content:space-between}.footer-shell .site-brand{font-size:22px}.footer-shell nav{display:flex;gap:20px;background:transparent;margin:0;padding:0;flex-wrap:wrap}.footer-shell a,.footer-meta a{color:#fff;text-decoration:none}.footer-shell nav a:hover,.footer-meta a:hover{text-decoration:underline}.footer-meta{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #34455e;padding-top:18px;margin-top:22px;font-size:11px}.site-footer .credits{border-top-color:#34455e}
.public-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px);column-gap:64px;row-gap:20px;align-items:center;padding:38px 0 40px;min-height:0}.page-kicker{font-size:10px;letter-spacing:1.8px;font-weight:600;color:var(--public-muted);margin:0 0 18px}.public-hero h1,.login-intro h1{position:relative;display:inline-block;transform:none;background:var(--public-red);border-radius:7px;clip-path:polygon(2% 0,100% 0,97% 100%,0 100%);color:#fff;font-family:RibbonTitle,WalkerDisplay,system-ui,sans-serif;font-size:clamp(32px,4.5vw,54px);line-height:1.1;letter-spacing:-1.2px;padding:14px 28px 18px 22px;margin:0 0 20px}.public-hero h1:before,.login-intro h1:before{display:none}.hero-lead{font-size:14px;line-height:1.8;color:var(--public-muted);margin:0;max-width:540px}.hero-cast{position:relative;isolation:isolate;min-height:230px;display:flex;justify-content:center;align-items:flex-end;padding-bottom:24px;gap:0}.hero-cast:before{content:'';position:absolute;z-index:-1;bottom:6px;left:0;right:0;height:76px;background:#dce4ef;border:1px solid #b9c3d3;border-bottom:6px solid #aebcd0;border-radius:50%}.hero-cast .trainer-pixel-frame{margin-inline:-12px}.hero-cast img{image-rendering:pixelated}
.page-columns{display:block}.page-columns>section{min-width:0}.context-panel{background:#fff;border:1px solid var(--public-line);border-left:4px solid var(--public-red);border-bottom:5px solid #b9c3d3;border-radius:12px;padding:24px}.context-panel h2{margin:12px 0;font-size:23px}.context-panel p{font-size:13px;color:var(--public-muted);line-height:1.8}.context-panel .page-kicker{font-size:9px;margin:0}.context-panel .button{width:100%;font-size:13px}.fine-print{font-size:11px!important;line-height:1.7;color:var(--public-muted)}.quiet-link{display:inline-block;color:var(--public-ink);font-size:13px;margin-top:16px;text-underline-offset:4px}
nav.section-tabs{display:flex;flex-wrap:wrap;margin:0 0 22px;padding:7px;gap:7px;background:#fff;border:1px solid var(--public-line);border-bottom:4px solid #b9c3d3;border-radius:12px}.section-tabs button{font-size:13px;min-height:44px;padding:9px 18px}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 16px}.list-heading h2{font-size:24px;margin:0}.list-heading>span{font-size:11px;color:var(--public-muted)}
.ranking-row.person{display:grid;grid-template-columns:30px 120px minmax(0,1fr);gap:18px;padding:18px 22px;margin:12px 0;min-height:170px}.ranking-row .copy{min-width:0}.profile-name{font-size:25px}.rank-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0 8px}.rank-metrics>div{display:grid;gap:3px}.rank-metrics dt{color:var(--public-muted);font-size:10px}.rank-metrics dd{margin:0;font-family:RibbonTitle,WalkerDisplay,system-ui,sans-serif;font-size:23px;color:var(--public-ink)}.ranking-row .rank-position{font-size:24px;min-width:0}.ranking-row small{font-size:11px;color:var(--public-muted)}.ranking-row:first-child{border-left:4px solid var(--public-red)}.rank-position{align-self:center}.rank-metrics .metric-wins{color:var(--public-red)}
.page-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:24px 0;padding:0;background:transparent;border:0;font-size:12px}.page-pagination button{min-height:42px;font-size:12px;padding:8px 14px;border-bottom-width:3px;border-radius:8px}.page-pagination span{font-variant-numeric:tabular-nums;white-space:nowrap}.page-pagination[hidden]{display:none!important}
.empty-state{background:#fff;border:1px solid var(--public-line);border-bottom:5px solid #b9c3d3;border-radius:12px;padding:34px 26px;text-align:center;margin:16px 0}.empty-state h2,.empty-state h3{font-family:RibbonTitle,WalkerDisplay,system-ui,sans-serif;margin:0 0 10px;font-size:23px}.empty-state p{color:var(--public-muted);font-size:13px;line-height:1.7;max-width:420px;margin:0 auto}.empty-state .button{margin-top:20px;font-size:13px}.loading-state{padding:32px;background:#fff;border:1px solid var(--public-line);border-radius:12px;color:var(--public-muted);font-size:13px}#ranking-error:not(:empty),#pwt-error:not(:empty),#error:not(:empty){padding:16px 20px;border:1px solid #e8b9b5;border-left:4px solid var(--public-red);border-radius:8px;background:#fff4f2;color:#8c221b;font-size:13px}
.hub-card{min-height:220px;padding:24px}.hub-card h2{font-size:28px}.hub-card p{font-size:13px}.hub-card .trainer-pixel-frame{align-self:flex-end}.hub-grid{gap:22px}.tournament-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}.tournament-grid .empty-state{grid-column:1/-1}.tournament-grid .hub-card{min-height:190px;margin:0}.tournament-grid .hub-card h2{font-size:24px}.tournament-grid .hub-card button{font-size:12px;min-height:42px;padding:8px 14px}.web-bracket{display:flex;overflow-x:auto;gap:20px;padding:6px 0 20px}.web-bracket>section{flex:1 0 210px;min-width:0}.web-bracket h3{font-size:15px}.web-crossing{margin:12px 0}.web-crossing>div{padding:10px;min-height:80px;font-size:12px}.tournament-content #tournaments-back{font-size:12px;min-height:42px;padding:8px 14px}
#login.login-layout{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:64px;align-items:center;margin:32px 0}.login-intro .login-benefits{margin:28px 0;padding-left:18px;color:var(--public-muted);font-size:14px}.login-benefits li{margin:14px 0}.login-layout .login-card{margin:0;padding:32px;max-width:none}.login-card .professor{width:88px;height:88px}.login-card .page-kicker{margin-top:18px}.login-card h2{font-size:26px;margin:16px 0}.login-card p{font-size:13px;line-height:1.8}.login-card .primary{min-width:210px;margin-top:12px}.link-code{font-variant-numeric:tabular-nums;font-size:24px}.profile-columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.profile-columns>section{min-width:0}
@media(max-width:900px){.site-header-inner{gap:14px}.site-links a{padding-inline:8px;font-size:12px}.public-hero{grid-template-columns:minmax(0,1fr) 230px;gap:20px}.page-columns{grid-template-columns:minmax(0,1fr)}.context-panel{max-width:none;display:block}.context-panel .button{width:auto}.ranking-row.person{grid-template-columns:30px 120px minmax(0,1fr)}#login.login-layout{gap:28px}}
@media(max-width:620px){.site-header-inner{padding:14px 18px;gap:10px}.site-brand>img{width:36px;height:36px}a.site-brand{font-size:21px}.site-header-inner nav.site-links{order:3;width:100%;margin:0;gap:2px;justify-content:space-between}.site-links a{padding:9px 7px;font-size:11px}.site-header #logout{margin-left:auto}.site-header{min-height:0!important}body.community>main{padding:0 18px 32px}.public-hero{grid-template-columns:minmax(0,1fr) 88px;padding:32px 0;column-gap:14px;row-gap:18px;min-height:0}.public-hero h1,.login-intro h1{font-size:clamp(27px,6.3vw,39px);padding:10px 18px 12px;letter-spacing:-.8px;margin-bottom:14px}.public-hero .page-kicker{margin-bottom:12px}.hero-lead{font-size:13px}.hero-cast{min-height:110px;justify-self:center;width:88px;margin:0;gap:0;align-self:center;flex-wrap:wrap;padding-bottom:10px}.hero-cast .trainer-pixel-frame{margin-inline:0}.hero-cast:before{height:26px}.page-columns{gap:24px}.context-panel{padding:22px}.ranking-row.person{grid-template-columns:24px 88px minmax(0,1fr);gap:9px;padding:14px 12px;min-height:140px}.profile-name{font-size:21px}.rank-metrics{gap:9px;margin:10px 0 8px}.rank-metrics dt{font-size:9px}.rank-metrics dd{font-size:20px}.ranking-row .rank-position{font-size:22px}.ranking-row small{font-size:10px}.page-pagination{gap:10px}.page-pagination button{min-height:44px;padding:8px 12px}.list-heading h2{font-size:22px}.hub-card{padding:22px;min-height:200px}.hub-card h2{font-size:26px}.hub-card p{font-size:12px}.hub-card .trainer-pixel-frame{max-width:110px}.hub-grid{gap:18px}#login.login-layout{grid-template-columns:1fr;gap:24px;margin:8px 0}.login-intro .login-benefits{margin:18px 0}.login-layout .login-card{padding:24px}.footer-shell{align-items:flex-start;flex-direction:column;gap:22px}.footer-shell nav{gap:18px;font-size:12px}.footer-meta{flex-wrap:wrap;gap:10px;font-size:10px}.site-footer-inner,.site-footer>.wrap{padding:0 18px}.profile-columns{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

.profile-visibility{font-size:12px;color:var(--public-muted);padding:12px 0;margin:0}.site-footer .credits{font-size:11px}

body.community .context-panel.how-to{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:40px 0 0;padding:24px 28px}.context-panel.how-to h2{font-size:18px;margin:0}.context-panel.how-to p{margin:0;font-size:12px}.context-panel.how-to .page-kicker{width:100%}.context-panel.how-to .button{width:auto}.context-panel.how-to .fine-print{width:100%}.context-panel.how-to .quiet-link{margin:0}.context-panel.how-to>p:not(.page-kicker):not(.fine-print){flex:1;min-width:200px}
body.community h1{transform:none;background:var(--public-red);color:#fff;clip-path:polygon(2% 0,100% 0,97% 100%,0 100%);border-radius:7px}body.community h1:before{display:none}.rank-position{font-family:RibbonTitle,system-ui,sans-serif;color:var(--public-red)}.profile-name{color:var(--public-ink);text-decoration:none}.profile-name:hover{text-decoration:underline}.section-tabs button[aria-pressed=true]{background:var(--public-red);border-color:var(--public-red);border-bottom-color:#981d16;color:#fff}.section-tabs button{flex:0 1 auto}.list-heading{padding-top:12px}.context-panel{box-shadow:none}
@media(max-width:620px){body.community .context-panel.how-to{padding:20px 16px;margin-top:32px}.public-hero .page-kicker{font-size:8px;letter-spacing:1.2px}.public-hero>div:first-child{min-width:0}.hero-cast .trainer-pixel-frame{max-width:none}.rank-metrics dd{color:var(--public-ink)}.rank-metrics dt{color:var(--public-muted)}}

.public-hero>.hero-lead{grid-column:1;margin:0 0 0 8px;align-self:start}.public-hero>.hero-cast{grid-column:2;grid-row:1/span 2}.public-hero>div:first-child{align-self:end}.public-hero h1{margin-bottom:0;padding:12px 28px 16px 22px}.public-hero .page-kicker{margin-left:8px}.public-hero .hero-professor{grid-column:2;grid-row:1/span 2}#login{max-width:none;margin:0}#login>.login-card{margin:0 auto 24px;max-width:620px;width:100%}.public-hero .hero-professor picture{margin:0}.site-footer{display:block}
@media(max-width:620px){.public-hero>.hero-lead{grid-column:1/-1;font-size:13px;line-height:1.8}.public-hero>.hero-cast,.public-hero .hero-professor{grid-row:1}.public-hero>div:first-child{align-self:center}.public-hero h1{padding:10px 18px 12px;letter-spacing:-.8px}.public-hero .hero-cast{min-height:110px}.section-tabs button{flex:1}.ranking-content>p#ranking-description{font-size:12px;color:var(--public-muted);line-height:1.8}}

#ranking-description{font-size:12px;color:var(--public-muted);line-height:1.8}.trainer-card h2{overflow-wrap:anywhere}.trainer-card>div{min-width:0}.public-hero .hero-cast{align-self:center}.hero-cast:before{max-width:210px;margin-inline:auto}.login-card>.professor{display:none}.login-card .page-kicker{margin-top:0}

#login.login-layout>.public-hero{grid-template-columns:minmax(0,1fr);gap:18px;padding:0}#login.login-layout .hero-professor{grid-column:1;grid-row:auto;justify-self:start;width:230px}#login.login-layout .hero-professor img{height:220px}#login.login-layout>.login-card{margin:0;width:100%;box-sizing:border-box}#login.login-layout h1{font-size:clamp(32px,3.5vw,46px)}
@media(max-width:700px){#login.login-layout{grid-template-columns:minmax(0,1fr);gap:24px;margin:24px 0}#login.login-layout>.public-hero{grid-template-columns:minmax(0,1fr) 88px;gap:14px}#login.login-layout .hero-professor{grid-column:2;grid-row:1;width:88px}#login.login-layout .hero-professor img{height:105px}#login.login-layout .hero-professor figcaption{display:none}#login.login-layout>.login-card{padding:24px}}

#login.login-layout .hero-professor picture:before{width:80%;height:auto;aspect-ratio:1;bottom:12px}

#portal>.public-hero{padding:26px 0;grid-template-columns:minmax(0,1fr) 180px;gap:16px 36px}#portal>.public-hero .hero-professor img{height:150px}#portal>.public-hero .hero-professor picture:before{width:min(130px,80%);height:auto;aspect-ratio:1;bottom:10px}#portal>.public-hero .hero-professor figcaption{font-size:8px;margin-top:8px}#portal>.public-hero h1{font-size:clamp(30px,4vw,46px)}
@media(max-width:620px){#portal>.public-hero{grid-template-columns:minmax(0,1fr) 72px;gap:12px;padding:22px 0}#portal>.public-hero .hero-professor img{height:90px}#portal>.public-hero .hero-professor figcaption{display:none}}
