@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/geist-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/chakra-petch-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/chakra-petch-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/chakra-petch-latin-700-normal.woff2) format('woff2')}
/* Rejects identity: black ground, white type, red for the brand and actions, blue for information. */
:root{
  color-scheme:dark;
  --bg:#090a0c;--bg-2:#101216;--surface:#131519;--surface-2:#1a1d23;--raise:#262b34;
  --line:rgba(183,192,211,.12);--line-2:rgba(183,192,211,.22);
  --ink:#f2f3f5;--ink-2:#c4c8d2;--muted:#9199a8;--white:#f7f8fa;
  --red:#c50102;--red-hi:#dc0a0c;--red-ink:#ff5a5a;--red-bg:rgba(255,90,90,.13);
  --blue:#6495ff;--blue-hi:#82aaff;--blue-bg:rgba(100,149,255,.13);
  --display:"Chakra Petch","Arial Narrow",system-ui,sans-serif;
  --body:"Geist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --wrap:1180px;--gut:max(20px,env(safe-area-inset-left));
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;min-height:100vh;display:flex;flex-direction:column}
main{flex:1;width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--gut) 64px;outline:0}
h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.1;margin:0;letter-spacing:.005em;text-wrap:balance}
h1{font-size:36px;font-weight:700}
h2{font-size:21px}
h3{font-size:16px;margin-top:6px}
p{margin:0}
a{color:var(--ink);text-underline-offset:3px;text-decoration-color:rgba(242,243,245,.35)}
a:hover{text-decoration-color:currentColor}
.muted{color:var(--muted)}
.small{font-size:13px}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-999px;top:8px;z-index:90;background:var(--white);color:var(--bg);padding:8px 14px;border-radius:8px;font-weight:600}
.skip:focus{left:12px}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.i{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
code{font-size:12px}

/* header */
.site-top{position:sticky;top:0;z-index:40;background:rgba(9,10,12,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.site-top-in{max-width:var(--wrap);margin:0 auto;padding:calc(10px + env(safe-area-inset-top,0px)) var(--gut) 10px;display:flex;align-items:center;gap:28px;min-height:68px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;flex:none}
.brand img{width:44px;height:auto;display:block}
.word{display:flex;flex-direction:column;line-height:1;font-family:var(--display)}
.word b{font-size:18px;font-weight:700;letter-spacing:.09em;color:var(--white)}
.word span{font-size:9.5px;font-weight:600;letter-spacing:.2em;color:var(--red-ink);margin-top:5px}
#nav{display:flex;gap:4px;flex:1;min-width:0}
#nav a{text-decoration:none;color:var(--ink-2);font-weight:500;padding:9px 12px;border-radius:8px;white-space:nowrap}
#nav a:hover{color:var(--white);background:var(--surface)}
#nav a[aria-current="page"]{color:var(--white);box-shadow:inset 0 -2px 0 var(--red)}
.who{display:flex;gap:8px;align-items:center;flex:none}
.acct{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:4px 14px 4px 4px;max-width:240px;font-weight:600;font-size:14px}
.acct .av{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--raise);flex:none;font-size:13px}
.acct .al{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct[aria-current="page"]{border-color:var(--ink-2)}

/* buttons and fields */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 18px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--ink);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap;touch-action:manipulation;transition:background-color .12s,border-color .12s}
.btn:hover{background:var(--raise)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.primary{background:var(--red);border-color:var(--red);color:#fff}
.btn.primary:hover{background:var(--red-hi);border-color:var(--red-hi)}
.btn.ghost{background:transparent}
.btn.ghost:hover{background:var(--surface-2)}
.btn.sm{min-height:36px;padding:6px 12px;font-size:13.5px;border-radius:9px}
.btn.icon{width:40px;min-height:40px;padding:0}
.btn.danger{color:var(--red-ink)}
input,select,textarea{font:inherit;color:var(--ink);background:var(--bg-2);border:1px solid var(--line-2);border-radius:10px;padding:10px 12px;min-height:44px;min-width:0;width:100%}
input::placeholder{color:#717887}
input[readonly]{color:var(--ink-2);background:var(--surface)}
select{-webkit-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239199a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
input[type="checkbox"]{width:20px;height:20px;min-height:0;padding:0;accent-color:var(--blue);flex:none;margin:1px 0 0}
@media (pointer:coarse){input,select,textarea{font-size:16px}}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--muted);min-width:0}
label.f.grow{flex:1 1 180px}
.hint{font-size:12.5px;color:var(--muted);font-weight:400;line-height:1.45}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink-2);line-height:1.5;cursor:pointer}
.check.sm{align-items:center;font-size:13px;min-height:44px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row.between{justify-content:space-between}

/* panels */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}
.panel.narrow{max-width:520px;margin:48px auto 0}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.page-head{margin:40px 0 20px;display:flex;flex-direction:column;gap:8px;max-width:760px}
.loading{color:var(--muted);padding:48px 0}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:64px 20px;color:var(--ink-2)}
.empty.slim{padding:36px 20px;border:1px dashed var(--line-2);border-radius:14px}
.notice{margin-top:24px;padding:12px 16px;border-radius:10px;background:var(--red-bg);color:var(--ink);border:1px solid rgba(255,90,90,.35)}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:2px 9px;border-radius:99px;background:var(--blue-bg);color:var(--blue-hi)}
.pill.bad{background:var(--red-bg);color:var(--red-ink)}
.tools{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.search{position:relative;flex:1 1 280px;max-width:440px;display:block}
.search .i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted)}
.search input{padding-left:38px}
.sel{flex:0 0 200px}
.nores{padding:20px 0}

/* team badges */
.badge{width:40px;height:40px;flex:none;border-radius:9px;display:grid;place-items:center;background:#0b0c0e;border:1px solid var(--line-2);overflow:hidden}
.badge img{width:86%;height:86%;object-fit:contain;display:block}
.badge.letters{font-family:var(--display);font-weight:700;font-size:14px;letter-spacing:.04em;color:var(--white);background:var(--surface-2)}
.badge.long{font-size:11px}
.badge.xs{width:24px;height:24px;border-radius:6px;font-size:8.5px}
.badge.xs.long{font-size:7px}
.badge.lg{width:64px;height:64px;border-radius:12px;font-size:20px}
.badge.lg.long{font-size:15px}
.badge.xl{width:112px;height:112px;border-radius:18px;font-size:32px}
.badge.xl.long{font-size:24px}

/* home */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:48px;align-items:start;padding:56px 0 48px;border-bottom:1px solid var(--line)}
.hero-copy{display:flex;flex-direction:column;gap:18px;padding-top:8px}
.hero-logo{width:96px;height:auto}
.hero-title{font-size:52px;line-height:.98;text-transform:uppercase;letter-spacing:.01em;max-width:10ch}
.lede{font-size:17px;color:var(--ink-2);max-width:46ch;line-height:1.6}
.cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.hero-board{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px 20px 8px;border-top:3px solid var(--red)}
.board-head,.block-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}
.board-head a,.block-head a{font-size:14px;color:var(--ink-2)}
.board-empty{color:var(--muted);padding:18px 0 22px;line-height:1.6}

/* the leaderboard: big rank numbers, like an end-of-match scoreboard */
.board{list-style:none;margin:0;padding:0}
.board-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.board-row:first-child{border-top:0}
.rk{font-family:var(--display);font-weight:700;font-size:34px;line-height:1;color:var(--muted);text-align:left}
.board-row.top .rk{color:var(--white)}
.board-row.top:first-child .rk{color:var(--red-ink)}
.pwho{min-width:0}
.board-row .pwho{display:flex;flex-direction:column;gap:3px}
.board-row .pwho b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-row .pwho a{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);text-decoration:none;min-width:0}
.board-row .pwho a:hover{color:var(--ink)}
.nums{display:flex;gap:18px}
.nums span{display:flex;flex-direction:column;align-items:flex-end;font-size:11.5px;color:var(--muted);line-height:1.2}
.nums b{font-family:var(--display);font-size:19px;color:var(--ink);font-weight:600}
.nums span:first-child b{color:var(--white)}
.block{padding:36px 0 0}

/* team grid */
.teams{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.teams li[hidden]{display:none}
.teams a{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;row-gap:2px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-decoration:none;height:100%}
.teams a:hover{border-color:var(--line-2);background:#15171c}
.teams .badge{grid-row:1/4}
.tn{font-weight:600;font-size:15.5px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt{font-family:var(--display);font-size:13px;letter-spacing:.06em;color:var(--ink-2)}
.tc{font-size:12.5px;color:var(--muted)}

/* tables */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
th{font-size:12.5px;font-weight:500;color:var(--muted);background:var(--surface)}
th.num,td.num{text-align:right}
td.strong{font-weight:600;color:var(--white)}
.ranks td.rk{font-size:22px;width:72px}
.ranks tbody tr:nth-child(-n+3) td.rk{color:var(--white)}
.ranks tbody tr:first-child td.rk{color:var(--red-ink)}
.ranks .later td.rk{color:var(--muted)}
.ranks .pl b{font-weight:600}
.ranks .pl .sub{display:none;font-size:12.5px;color:var(--muted);text-decoration:none}
.ranks .tm a{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink-2)}
.ranks .tm a:hover{color:var(--ink)}
.ranks tr[hidden]{display:none}
.ranks.compact td,.ranks.compact th{padding:10px 12px}
.panel .tablewrap{border:0;border-radius:0;background:none;margin:0 -8px}
.later{margin-top:22px}
.later summary{cursor:pointer;font-weight:600;padding:8px 0;color:var(--ink-2)}
.later[open] summary{margin-bottom:10px}
.admin .acts{display:flex;gap:6px;justify-content:flex-end}

/* team page */
.team-head{display:flex;align-items:center;gap:24px;padding:40px 0 28px;flex-wrap:wrap}
.team-id{flex:1 1 320px;display:flex;flex-direction:column;gap:10px;min-width:0}
.team-id h1{font-size:42px}
.team-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;color:var(--ink-2);font-size:14px}
.tagchip{font-family:var(--display);font-weight:700;font-size:14px;letter-spacing:.08em;color:var(--white);border:1px solid var(--red);border-radius:6px;padding:1px 9px}
.links{display:flex;flex-wrap:wrap;gap:6px 18px}
.links a{display:inline-flex;align-items:center;gap:5px;color:var(--ink-2);font-size:14px}
.links a .i{width:13px;height:13px}
.team-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px;align-items:start}
.people{list-style:none;margin:0;padding:0}
.people li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.people li:first-child{border-top:0}
.people span{color:var(--muted);font-size:13.5px;text-align:right}

/* editor */
.editor{display:flex;flex-direction:column;gap:16px;max-width:880px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.logo-pick{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.logo-pick>div{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.logo-pick>div .btn+.btn{margin-top:0}
.rows{display:flex;flex-direction:column;gap:8px}
.rrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}
.rrow:first-child{border-top:0}
.rrow select{width:auto;min-width:150px}
.agree{padding:4px 2px}
.savebar{position:sticky;bottom:0;padding:14px 0 calc(14px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,var(--bg) 30%);justify-content:space-between}

/* legal */
.legal{max-width:780px;margin:40px 0 0;gap:12px}
.legal h1{margin-bottom:4px}
.legal h2{font-size:19px;margin-top:16px}
.legal p,.legal li{color:var(--ink-2);line-height:1.65}
.legal ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}

/* footer */
.site-foot{border-top:1px solid var(--line);background:#07080a}
.site-foot-in{max-width:var(--wrap);margin:0 auto;padding:28px var(--gut) calc(32px + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center;justify-content:space-between;font-size:13.5px;color:var(--muted)}
.foot-brand{display:flex;align-items:center;gap:12px}
.foot-brand img{width:36px;height:auto}
.site-foot nav{display:flex;flex-wrap:wrap;gap:6px 20px}
.site-foot nav a{color:var(--ink-2)}
.copy{flex-basis:100%}

.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--white);color:var(--bg);font-weight:500;padding:10px 16px;border-radius:12px;font-size:14px;z-index:80;max-width:min(92vw,520px);box-shadow:0 12px 32px rgba(0,0,0,.45)}

@media (max-width:960px){
  .hero{grid-template-columns:1fr;gap:32px;padding-top:36px}
  .hero-title{font-size:44px;max-width:none}
  .team-body{grid-template-columns:1fr}
}
@media (max-width:720px){
  .site-top-in{flex-wrap:wrap;gap:8px 12px;min-height:0}
  .brand{order:1}
  .who{order:2;margin-left:auto}
  #nav{order:3;flex-basis:100%;overflow-x:auto;scrollbar-width:none;margin:0 -8px}
  .acct{padding:4px}
  .acct .al{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  h1{font-size:30px}
  .hero-title{font-size:36px}
  .grid2{grid-template-columns:1fr}
  .ranks .tm{display:none}
  .ranks .pl .sub{display:block}
  .ranks td.rk{width:52px;font-size:19px}
  th,td{padding:11px 10px}
  .team-head{gap:16px;padding-top:28px}
  .team-id h1{font-size:32px}
  .badge.xl{width:88px;height:88px;font-size:26px}
  .nums{gap:12px}
  .nums span:nth-child(3){display:none}
  .board-row{grid-template-columns:40px minmax(0,1fr) auto;gap:10px}
  .rk{font-size:28px}
  .sel{flex:1 1 160px}
}
@media (max-width:480px){
  .ranks .rd{display:none}
  .ranks th,.ranks td{padding:10px 8px}
  .ranks td.rk{width:40px}
  .who .su{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
