:root{color-scheme:dark;--base:#000;--card:#171717;--edge:#3c3c3c;--ink:#fff;--muted:#bcbcbc;--yellow:#ffed00;--black:#000;--display:"Arial Narrow","Aptos Narrow","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--base);color:var(--ink);font:1rem/1.5 system-ui,sans-serif}a{color:inherit;text-decoration:none}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}h1,h2,p{margin:0}h1,h2{line-height:.98;font-family:var(--display)}h1{font-size:clamp(3.1rem,8vw,7.6rem);font-weight:900;letter-spacing:-.088em}h2{font-size:clamp(1.7rem,3vw,2.75rem);letter-spacing:-.055em}small{font-size:.875rem}
.mast,footer{display:flex;align-items:center;justify-content:space-between;padding:1rem max(4vw,calc((100vw - 1300px)/2));border-bottom:1px solid var(--edge);gap:1.1rem}.mast{min-height:77px}.brand{display:inline-flex;align-items:center}.brand img{display:block;width:clamp(112px,17vw,160px);height:auto;max-height:46px;object-fit:contain;object-position:left center}
nav{display:flex;gap:clamp(.65rem,3vw,2.3rem);color:var(--muted);font-size:.93rem;font-weight:650}nav a[aria-current]{color:var(--yellow)}.outline,.solid{display:inline-flex;justify-content:center;align-items:center;gap:.5rem;border:1px solid var(--edge);padding:.57rem .85rem;border-radius:.32rem;font-size:.9rem;font-weight:750;background:transparent;color:var(--ink)}.outline:hover{border-color:var(--yellow)}.solid{background:var(--yellow);border-color:var(--yellow);color:var(--black)}.solid:hover{background:#fff47d}.wrap, .narrow{width:min(92%,1300px);margin:auto}.narrow{max-width:760px}.hero{padding:clamp(2rem,4vw,4.2rem) 0 1.65rem;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.hero h1 span{display:block;color:var(--yellow)}.month{color:var(--muted);font-weight:800;font-size:.9rem;text-transform:uppercase;letter-spacing:.13em;margin-bottom:.75rem}.right{text-align:right}.right p{color:var(--muted);margin-top:.4rem}.status{display:inline-flex;align-items:center;gap:.45rem;color:var(--yellow);font-weight:800;white-space:nowrap}.status::before{content:"";width:.47rem;height:.47rem;border-radius:50%;background:currentColor}.status.dim{color:var(--muted)}.board-layout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(245px,1fr);gap:1.15rem;align-items:start}.panel{background:var(--card);border:1px solid var(--edge);border-radius:.7rem;overflow:hidden}.board-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem 1.35rem}.switch{display:flex;background:var(--base);padding:.22rem;border-radius:.32rem;gap:.15rem}.switch button{border:0;border-radius:.22rem;background:none;color:var(--muted);font-weight:750;padding:.36rem .7rem}.switch button[aria-pressed=true]{color:var(--black);background:var(--yellow)}.table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}.table th,.table td{padding:.37rem 1.35rem;border-top:1px solid var(--edge);overflow-wrap:anywhere}.table th{font-size:.875rem;font-weight:650;color:var(--muted)}.table td{font-size:clamp(1rem,1.8vw,1.55rem);font-weight:780}.table th:first-child{width:4.7rem}.table th:last-child{width:7.7rem}.table th:last-child,.table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.table tbody tr:first-child{color:var(--yellow);background:#292600}.rank{color:var(--muted);font-variant-numeric:tabular-nums}.table tbody tr:first-child .rank{color:var(--yellow)}.empty{border-top:1px solid var(--edge);padding:1.5rem;color:var(--muted)}.side{display:grid;gap:1.15rem}.box{padding:1.25rem 1.35rem}.box h2{margin-bottom:.65rem}.muted{color:var(--muted)}.rules{white-space:pre-wrap;overflow-wrap:anywhere}.join{background:var(--yellow);color:var(--black);border:0;display:grid;grid-template-columns:1fr auto;gap:.7rem;align-items:center}.join .solid{background:var(--black);color:var(--ink);margin-top:.75rem;border-color:var(--black)}.qr{width:clamp(95px,10vw,148px);height:auto;display:block;background:white;border-radius:.25rem}.archive{padding:1.15rem 0 2.5rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.loading,.error-page{padding:4rem max(4vw,calc((100vw - 1300px)/2))}footer{margin-top:1rem;color:var(--muted);border-top:1px solid var(--edge);border-bottom:0;font-size:.87rem}
.form-head{padding:3rem 0 1.3rem}.form-head h1{font-size:clamp(3rem,7vw,5.75rem)}.form-head p{margin-top:.8rem;color:var(--muted)}form{display:grid;gap:1.2rem}label{display:grid;gap:.32rem;font-weight:680}input:not([type=checkbox]),textarea,select{width:100%;padding:.68rem .75rem;border:1px solid var(--edge);border-radius:.28rem;background:var(--base);color:var(--ink)}.time-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}fieldset{margin:0;border:0;padding:0;min-width:0}legend{margin-bottom:.35rem;font-weight:750}.check{display:flex;align-items:baseline;gap:.6rem;font-weight:500}.check input{accent-color:var(--yellow)}.notice{color:#ffb5a1;min-height:1.5rem}.notice.good{color:var(--yellow)}.stack{display:grid;gap:1rem;margin-bottom:2rem}.review{display:flex;justify-content:space-between;align-items:center;gap:.65rem;padding:.7rem 0;border-top:1px solid var(--edge);flex-wrap:wrap}.review-actions{display:flex;gap:.35rem;flex-wrap:wrap}.toolbar{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}.tv nav,.tv footer,.tv .archive,.tv .join .solid{display:none}
@media(max-width:740px){.board-layout{grid-template-columns:1fr}.side{grid-row:2}.hero{align-items:flex-start;flex-direction:column}.right{text-align:left}.mast{flex-wrap:wrap}.mast nav{order:3;flex:0 0 100%;justify-content:space-between}.table th,.table td{padding-inline:.75rem}.table th:first-child{width:3.4rem}.table th:last-child{width:5.7rem}.archive{justify-content:flex-start}}

.mode-switch{margin-bottom:1.15rem;width:max-content;max-width:100%}.join h2{font-size:clamp(1.35rem,2.1vw,2.25rem)}.join small{display:block;margin-top:.55rem;font-weight:650}[hidden]{display:none!important}.tv .join .preview-button{display:inline-flex}
.boards{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:1rem}
.board-layout{grid-template-columns:minmax(0,2.8fr) minmax(255px,1fr);align-items:stretch}
.board-layout>.side{display:flex;flex-direction:column;gap:1rem}
.board-layout .live-panel{margin-top:auto}
.boards .table td,.boards .table th{padding-inline:clamp(.4rem,1vw,.95rem)}
.boards .table th:first-child{width:3.25rem}.boards .table th:last-child{width:6.25rem}
.boards .board-head{padding-inline:clamp(.65rem,1.3vw,1.2rem)}
.live-panel{border-color:var(--yellow)}.live-panel h2{display:flex;align-items:center;gap:.45rem}
.live-panel h2 span{width:.43rem;height:.43rem;border-radius:50%;background:var(--yellow);flex-shrink:0}
.live-entry{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.45rem 0;border-top:1px solid var(--edge)}
.live-entry div{min-width:0;overflow-wrap:anywhere}.live-entry small{display:block;color:var(--muted)}
.live-entry time,.stopwatch{font-variant-numeric:tabular-nums;font-weight:900;color:var(--yellow);line-height:1}
.live-entry time{font-size:clamp(1.65rem,3vw,3rem);flex-shrink:0}
.stopwatch{display:block;font-size:clamp(4rem,16vw,8rem);margin:.85rem 0 1.15rem}
#another-attempt{margin-top:1rem}.mode-switch{flex-wrap:wrap}


@media(max-width:850px){.board-layout{grid-template-columns:1fr}}
@media(max-width:460px){.boards{grid-template-columns:1fr}}

.board-stack{min-width:0}
.tv .boards{grid-template-columns:minmax(0,1fr)}
.tv .boards>[data-tv-division]{grid-area:1/1;align-self:start}
.tv .boards>[aria-hidden=true]{visibility:hidden}



.board-top,.rotation-hint{font-size:.875rem;font-weight:650}
.rotation-hint{margin:.65rem .15rem 0;text-align:right;font-variant-numeric:tabular-nums}

/* The numeric columns keep enough space for rank 10 and times up to 999:59. */
.boards .table :is(th,td):is(:first-child,:last-child) {
  white-space:nowrap;
  overflow-wrap:normal;
}
.boards .table td:nth-child(2) {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.tv {
  --tv-gap:clamp(.35rem,1.25dvh,.95rem);
  --tv-pad:clamp(.4rem,1.28dvh,.9rem);
  --tv-row:clamp(1.05rem,5dvh,3.3rem);
}
.tv .mast {
  min-height:clamp(1.8rem,5.5dvh,3.8rem);
  padding-block:clamp(.15rem,.45dvh,.38rem);
}
.tv .brand img { max-height:clamp(1.2rem,4.3dvh,2.7rem); }
.tv .wrap { width:min(94%,100rem);max-width:none;padding-bottom:var(--tv-gap); }
.tv .hero {
  flex-direction:row;
  align-items:flex-end;
  padding:var(--tv-gap) 0;
  gap:.55rem;
}
.tv .hero h1 {
  font-size:clamp(1.3rem,min(5.1vw,6.55dvh),5.4rem);
  line-height:.97;
  letter-spacing:-.065em;
}
.tv .hero h1 span { display:inline; }
.tv .hero .month { margin-bottom:.2em; }
.tv .hero .month,.tv .right { font-size:clamp(.68rem,1.85dvh,.95rem); }
.tv .right { text-align:right;line-height:1.15; }
.tv .right p { margin-top:.22em; }
.tv .board-layout {
  grid-template-columns:minmax(0,2.1fr) minmax(10.5rem,1fr);
  align-items:start;
  gap:clamp(.55rem,1.45vw,1.32rem);
}
.tv .side {
  grid-row:auto;
  gap:var(--tv-gap);
}
.tv .live-panel { order:-1;margin-top:0; }
.tv .box { padding:var(--tv-pad) clamp(.45rem,1.2vw,1rem); }
.tv .box h2 {
  font-size:clamp(.9rem,min(2.25vw,3.45dvh),2.3rem);
  margin-bottom:.27em;
  letter-spacing:-.035em;
}
.tv .box p,.tv .box small { font-size:clamp(.68rem,1.9dvh,1rem);line-height:1.25; }
.tv .box .month { margin-bottom:.35em; }
.tv .challenge-panel h2,.tv .challenge-panel .rules {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.tv .challenge-panel h2 { -webkit-line-clamp:2; }
.tv .challenge-panel .rules { -webkit-line-clamp:3; }
.tv .join { gap:.45rem; }
.tv .qr {
  width:clamp(3.35rem,min(11vw,17dvh),10rem);
  height:auto;
}
.tv .join .preview-button {
  font-size:clamp(.66rem,1.75dvh,.9rem);
  padding:.26em .48em;
  line-height:1.25;
  margin-top:.4rem;
}
.tv .live-entry { padding:clamp(.16rem,.7dvh,.42rem) 0; }
.tv .live-entry strong {
  display:block;
  line-height:1.17;
  font-size:clamp(.71rem,2.3dvh,1.3rem);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tv .live-entry small { white-space:nowrap; }
.tv .live-entry time { font-size:clamp(1.1rem,min(4.7vw,5dvh),3rem);white-space:nowrap; }
.tv .boards .board-head { padding:var(--tv-pad) clamp(.55rem,1.4vw,1.35rem); }
.tv .boards .board-head h2 { font-size:clamp(1.16rem,min(4.2vw,5.25dvh),3.3rem); }
.tv .boards .table th,.tv .boards .table td { padding:.07rem clamp(.42rem,1.35vw,1.2rem);line-height:1.08; }
.tv .boards .table th {
  height:clamp(.98rem,3.45dvh,1.85rem);
  font-size:clamp(.64rem,1.9dvh,1.05rem);
}
.tv .boards .table td {
  height:var(--tv-row);
  font-size:clamp(.78rem,3.05dvh,2rem);
}
.tv .boards .table :is(th,td):first-child { width:clamp(2.2rem,8vw,5.5rem);text-align:center; }
.tv .boards .table :is(th,td):last-child { width:clamp(4.6rem,15vw,9.5rem); }
.tv .board-top,.tv .rotation-hint { font-size:clamp(.65rem,1.8dvh,.9rem); }
.tv .rotation-hint { margin-top:.2rem; }

@media (max-width:550px) and (min-height:520px) {
  .tv .board-layout { grid-template-columns:minmax(0,1fr);gap:var(--tv-gap); }
  .tv .side { display:grid;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start; }
  .tv .challenge-panel { grid-column:1/-1; }
  .tv .challenge-panel .month,.tv .challenge-panel .rules { display:none; }
  .tv .challenge-panel h2 { margin:0; }
  .tv .qr { width:clamp(3.35rem,14vw,5.5rem); }
  .tv { --tv-row:clamp(1.05rem,4.45dvh,2.65rem); }
}
@media (max-height:450px) {
  .tv .hero .month { margin-bottom:.08em; }
  .tv .challenge-panel .rules { -webkit-line-clamp:2; }
  .tv .join small { display:none; }
}
