.weekly-board, .weekly-dialog { font-family: "Grandstander", "Trebuchet MS", sans-serif; color: #edf6f5; }
.weekly-board { display: none; }
html[data-main-menu-style="default"] .weekly-board {
  display: block; position: absolute; z-index: 2; left: 54.5%; top: 75.5%; width: 18.3%;
  box-sizing: border-box; padding: .7cqw .8cqw;
  background: linear-gradient(100deg, #102e3a80, #153d4966 65%, #153d4900);
  border-left: 2px solid #9ec6c18c; border-radius: 3px 12px 12px 3px;
  text-shadow: 0 1px 3px #000a; font-size: clamp(10px, .78cqw, 17px);
}
.weekly-board header, .weekly-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weekly-board h2 { margin: 0; font-size: 1.05em; font-weight: 650; }
.weekly-kicker { font-size: .7em; letter-spacing: .16em; color: #c9ded9; margin-bottom: .5em; }
.weekly-board button { font: inherit; color: #d2eee6; background: transparent; border: 0; cursor: pointer; padding: .4em; text-decoration: underline; text-underline-offset: 4px; }
.weekly-board button:focus-visible { outline: 2px solid #d1eee7; }
.weekly-table { width: 100%; border-collapse: collapse; margin: .8em 0; font-size: .94em; font-variant-numeric: tabular-nums; }
.weekly-table th, .weekly-table td { text-align: right; padding: .5em .35em; border-bottom: 1px solid #adccc41c; }
.weekly-table th:nth-child(2) { text-align: left; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-table thead { color: #b4cfcf; font-size: .8em; }
.weekly-table tbody th { font-weight: 500; }
.weekly-table tbody tr:first-child td:first-child { color: #f4d68d; font-size: 1.3em; }
.weekly-table .weekly-you { color: #f4dfaa; background: #73a6a316; }
.weekly-champion { color: #b7cfc9; font-size: .8em; margin: .7em 0 0; }
.weekly-empty { color: #d0dedb; line-height: 1.6; margin: .8em 0; }
.weekly-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: .7cqw; width: 80%; margin: .3cqw auto; }
.weekly-pair-item { display: flex; flex-direction: column; align-items: center; gap: .25cqw; min-width: 0; }
.weekly-pair-name { color: #e4efdf; font-size: clamp(11px, .8cqw, 17px); line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.weekly-pair img, .weekly-pair canvas { display: block; width: 6cqw; height: 5.1cqw; object-fit: contain; border-radius: 8px; border: 1px solid #b1ccbf80; background: #0b222c; }
.weekly-leader { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 2.2cqw; height: 2.2cqw; border: 1px solid #e4c678; border-radius: 50%; background: #244955; color: #f4dfaa; font-size: 1.1cqw; }
.weekly-leader[hidden], .weekly-leader img[hidden] { display: none; }
.weekly-leader img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.weekly-leader-crown { position: absolute; z-index: 1; width: 1.4cqw; height: 1.05cqw; top: -.8cqw; left: 50%; transform: translateX(-50%); fill: #f4d68d; filter: drop-shadow(0 1px 2px #0009); }
.weekly-pair-cross { color: #add6d3; font-size: 1.2em; align-self: start; margin-top: 1.4cqw; }
.weekly-pairing { display: block; font-size: .9em; line-height: 1.25; margin-bottom: .5em; color: #e4efdf; }
.weekly-pairing[hidden] { display: none; }
.weekly-dialog { width: min(780px, 90vw); max-height: 85vh; box-sizing: border-box; border: 1px solid #aec9c2; border-radius: 18px; padding: 30px; background: linear-gradient(145deg, #244955, #0c222d); box-shadow: 0 25px 100px #0009; }
.weekly-dialog::backdrop { background: #020e18bb; backdrop-filter: blur(6px); }
.weekly-dialog h2 { margin: .2em 0; font-size: 1.8em; }
.weekly-board-nav { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 0; }
.weekly-board-nav button[aria-pressed="true"] { border-color:#f1cf88; color:#ffe4a3; }
.weekly-board-nav select { max-width:100%; padding:6px; color:#edf6f5; background:#183441; border:1px solid #859b9b; border-radius:6px; }
.weekly-row-replay { border:1px solid #b89d68; border-radius:50%; background:#182f3b; color:#ffe4a3; width:28px; height:28px; cursor:pointer; }
.weekly-dialog footer[hidden] { display:none; }
.weekly-dialog p { line-height: 1.6; }
.weekly-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.weekly-result { text-align: center; }
.weekly-result-score { font-size: 3em; color: #f5dfa4; }
html[data-game-ui="modern"] #levelSummaryOverlay.weekly-result-overlay .level-summary-title::before { content: none; }
#levelSummaryOverlay.weekly-result-overlay .weekly-table { height: auto; align-self: start; }
.weekly-table .weekly-empty { text-align: left; white-space: normal; }
.weekly-board .weekly-table th, .weekly-board .weekly-table td { padding-block: .35em; }
.weekly-board .weekly-table { table-layout: fixed; margin: .5em 0; }
.weekly-board .weekly-table th:first-child { width: 7%; }
.weekly-board .weekly-table th:nth-child(2) { width: 28%; }
.weekly-board .weekly-table th:nth-child(3) { width: 22%; }
.weekly-board .weekly-table th:nth-child(4) { width: 10%; }
.weekly-board .weekly-table th:nth-child(5) { width: 21%; }
.weekly-board .weekly-table th:nth-child(6) { width: 12%; }
@media (min-width: 1001px) {
  html[data-main-menu-style="default"] #mainMenuShell .menu-account-dock { bottom: 3%; }
  html[data-main-menu-style="default"] .fireside-challenge { padding-block: .5cqw; }
  html[data-main-menu-style="default"] .fireside-challenge-title { padding-bottom: .35cqw; }
  html[data-main-menu-style="default"] .fireside-challenge-bottom { margin-top: .45cqw; }
}
@media (max-width: 1000px) {
  html[data-main-menu-style="default"] .weekly-board { position: relative; left: auto; top: auto; width: calc(100% - 36px); margin: 18px; padding: 20px; font-size: 14px; }
  .weekly-pair { gap: 12px; margin: 6px auto; }
  .weekly-pair-item { gap: 4px; }
  .weekly-pair-cross { margin-top: 24px; }
  .weekly-pair img, .weekly-pair canvas { width: 104px; height: 88px; }
  .weekly-leader { width: 32px; height: 32px; font-size: 16px; }
  .weekly-leader-crown { width: 22px; height: 16px; top: -12px; }
  .weekly-dialog { padding: 20px; }
}
