#rankedWeeklyPanel[hidden] { display: none !important; }

#rankedWeeklyPanel {
    --wr-cyan: #42f3ff;
    --wr-purple: #cf7aff;
    --wr-text: #edf7ff;
    --wr-muted: #b8cada;
    --wr-cut-size: clamp(10px, 1.15vw, 20px);
    --wr-frame: polygon(var(--wr-cut-size) 0, calc(100% - var(--wr-cut-size)) 0, 100% var(--wr-cut-size), 100% calc(100% - var(--wr-cut-size)), calc(100% - var(--wr-cut-size)) 100%, var(--wr-cut-size) 100%, 0 calc(100% - var(--wr-cut-size)), 0 var(--wr-cut-size));
    position: absolute;
    inset: 16.8% 1.4% 4% 18.4%;
    z-index: 25;
    padding: clamp(2px, .19vw, 3px);
    clip-path: var(--wr-frame);
    background:
        radial-gradient(ellipse at 0 0, #4bfcff 0%, #087baf 12%, transparent 30%),
        radial-gradient(ellipse at 0 100%, #1cf6ff 0%, #038abd 12%, transparent 29%),
        radial-gradient(ellipse at 100% 0, #fe91ff 0%, #9858ee 13%, transparent 29%),
        radial-gradient(ellipse at 100% 100%, #ee71ff 0%, #834ee6 13%, transparent 35%),
        linear-gradient(104deg, #177c9e, #19374e 25%, #24405f 67%, #4d3074);
    color: var(--wr-text);
    font: 500 clamp(10px, 1.08vw, 18px)/1.32 'Noto Sans JP', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    pointer-events: auto;
}

.weekly-frame-corner {
    --wr-corner-tail: #36affc;
    position: absolute;
    z-index: 2;
    width: clamp(31px, 6.85vw, 120px);
    height: clamp(23px, 4.9vw, 84px);
    color: #4df3ff;
    pointer-events: none;
    filter: drop-shadow(0 0 5px currentColor);
}
.weekly-frame-corner::before, .weekly-frame-corner::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(0 var(--wr-cut-size), var(--wr-cut-size) 0, 100% 0, calc(100% - 12px) 3px,
        calc(var(--wr-cut-size) + 1px) 3px, 3px calc(var(--wr-cut-size) + 1px), 3px calc(100% - 12px), 0 100%);
    background: linear-gradient(118deg, currentColor 0 45%, var(--wr-corner-tail) 60%, transparent 93%);
}
.weekly-frame-corner::after {
    inset: 7px 12px 9px 7px;
    opacity: .56;
    clip-path: polygon(0 var(--wr-cut-size), var(--wr-cut-size) 0, 83% 0, 78% 1px,
        calc(var(--wr-cut-size) + .5px) 1px, 1px calc(var(--wr-cut-size) + .5px), 1px 67%, 0 73%);
}
.weekly-frame-corner.is-nw { inset: 0 auto auto 0; }
.weekly-frame-corner.is-ne { inset: 0 0 auto auto; transform: scaleX(-1); color: #e788ff; --wr-corner-tail: #a55fed; }
.weekly-frame-corner.is-sw { inset: auto auto 0 0; transform: scaleY(-1); }
.weekly-frame-corner.is-se { inset: auto 0 0 auto; transform: scale(-1); color: #f475ff; --wr-corner-tail: #b84ce6; }

.weekly-shell {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(5px, .93vw, 16px) clamp(5px, 1.35vw, 22px);
    clip-path: var(--wr-frame);
    background: radial-gradient(ellipse at 100% 1%, #34195975, transparent 25%),
        radial-gradient(ellipse at 100% 100%, #33194d76, transparent 25%),
        radial-gradient(ellipse at 0 0, #10566a68, transparent 25%),
        radial-gradient(ellipse at 0 100%, #04486b85, transparent 26%), #050e1b;
    box-shadow: inset 0 0 26px #0d68a23d;
}

.weekly-titlebar, .weekly-title, .weekly-period, .weekly-date-chip { display: flex; align-items: center; }
.weekly-titlebar {
    flex: none;
    justify-content: space-between;
    gap: clamp(5px, .9vw, 14px);
    min-height: clamp(32px, 3.31vw, 56px);
    padding: 0 0 clamp(5px, .75vw, 13px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #cd59ff 0%, #4af5ff 39%, #0a77be 65%, #362b71 100%) 1;
}
.weekly-title { gap: clamp(5px, 1.1vw, 21px); min-width: 0; padding-inline-start: clamp(5px, 1.54vw, 25px); }
.weekly-title h1, .weekly-title p, .weekly-card h2, .weekly-card p { margin: 0; }
.weekly-title h1 {
    outline: none;
    color: #f6faff;
    font: italic 700 clamp(15px, 2.2vw, 39px)/1.05 'Ponder Orbitron', Rajdhani, system-ui, sans-serif;
    white-space: nowrap;
    letter-spacing: .035em;
    text-shadow: 0 1px 4px #031321;
}
.weekly-title p {
    padding-inline-start: clamp(5px, 1.1vw, 20px);
    border-inline-start: 1px solid #7b9bab;
    color: #e9edf8;
    font-size: .86em;
    white-space: nowrap;
}
.weekly-title p span { color: #cfdae9; }
.weekly-title p.is-status { color: #ffd199; }
.weekly-chart-mark {
    flex: none;
    width: clamp(16px, 2.65vw, 42px);
    height: clamp(17px, 2.5vw, 41px);
    background: linear-gradient(0deg, #b24dff, #33f9ff 75%);
    clip-path: polygon(0 100%,0 66%,17% 66%,17% 100%,25% 100%,25% 52%,42% 52%,42% 100%,50% 100%,50% 29%,67% 29%,67% 100%,75% 100%,75% 2%,94% 2%,94% 100%);
}
.weekly-period { gap: clamp(4px, .58vw, 10px); font-size: .85em; white-space: nowrap; }
.weekly-date-chip, #rankedWeeklyPanel button {
    --button-cut: 6px;
    --button-shape: polygon(var(--button-cut) 0, calc(100% - var(--button-cut)) 0, 100% var(--button-cut), 100% calc(100% - var(--button-cut)), calc(100% - var(--button-cut)) 100%, var(--button-cut) 100%, 0 calc(100% - var(--button-cut)), 0 var(--button-cut));
    position: relative;
    isolation: isolate;
    clip-path: var(--button-shape);
    background: linear-gradient(140deg, #bdd4e5, #49718c 64%, #8a72ba);
    color: #f2f7ff;
}
.weekly-date-chip::before, #rankedWeeklyPanel button::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    clip-path: var(--button-shape);
    background: linear-gradient(145deg, #14263e, #08141f 65%, #192040);
}
.weekly-date-chip { gap: .65em; padding: .54em .95em; }
.weekly-calendar {
    display: block;
    width: .91em;
    height: .87em;
    border: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) 0 25% / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px) 50% 72% / 64% 1px no-repeat;
}
#rankedWeeklyPanel button {
    min-height: 29px;
    padding: 3px clamp(6px, .85vw, 14px);
    border: 0;
    border-radius: 0;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}
#rankedWeeklyPanel button:hover, #rankedWeeklyPanel button:focus-visible { background: #7ffaff; }
#rankedWeeklyPanel [data-weekly-close] { min-width: 2em; padding: 0 5px; font-size: 1.14em; }

.weekly-content {
    flex: 1;
    min-height: 0;
    margin-top: clamp(4px, .83vw, 14px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #42577f #091827;
    touch-action: pan-y;
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: clamp(5px, .84vw, 14px);
}
.weekly-summary, .weekly-main, .weekly-lower { display: grid; gap: clamp(5px, .95vw, 16px); min-width: 0; }
.weekly-summary { grid-template-columns: 1.07fr .98fr 1.05fr 1.02fr; }
.weekly-main { grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); }
.weekly-lower { grid-template-columns: minmax(0, .95fr) minmax(0, 1.09fr); }

.weekly-card, .weekly-hand-recap {
    --weekly-cut: clamp(5px, .56vw, 10px);
    --weekly-shape: polygon(var(--weekly-cut) 0, calc(100% - var(--weekly-cut)) 0, 100% var(--weekly-cut), 100% calc(100% - var(--weekly-cut)), calc(100% - var(--weekly-cut)) 100%, var(--weekly-cut) 100%, 0 calc(100% - var(--weekly-cut)), 0 var(--weekly-cut));
    --weekly-border: linear-gradient(147deg, #d3feff 0 3%, #53ebf9 8%, #36a7ba 24%, #345470 49% 70%, #34b9d9 90%, #b1f8ff);
    --weekly-fill: radial-gradient(ellipse at left bottom, #07586b70, transparent 41%),
        radial-gradient(ellipse at left top, #1467856b, transparent 38%), #060f1c;
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 1px;
    clip-path: var(--weekly-shape);
    background: var(--weekly-border);
}
.weekly-card::before, .weekly-hand-recap::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    clip-path: var(--weekly-shape);
    background: var(--weekly-fill);
}
.weekly-card::after, .weekly-hand-recap::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: clamp(34px, 8vw, 130px);
    height: clamp(14px, 2.2vw, 38px);
    clip-path: polygon(0 var(--weekly-cut), var(--weekly-cut) 0, 100% 0,
        calc(100% - 5px) 1px, calc(var(--weekly-cut) + 1px) 1px,
        1px calc(var(--weekly-cut) + 1px), 1px calc(100% - 5px), 0 100%);
    background: linear-gradient(125deg, #c1fbff 0%, #48eaff 22%, transparent 94%);
    pointer-events: none;
}
.weekly-match-card, .weekly-rival, .weekly-ladder {
    --weekly-border: linear-gradient(129deg, #c4faff 0 3%, #61f1ff 9%, #2d759f 28%, #405782 55%, #713fa0 81%, #e77bff 100%);
    --weekly-fill: radial-gradient(ellipse at left top, #17678170, transparent 35%),
        radial-gradient(ellipse at right bottom, #54348456, transparent 30%), #060f1c;
}
.weekly-stat {
    --weekly-border: linear-gradient(137deg, #bcfaff 0 4%, #53eef4 13%, #418da8 41%, #2d627d 59%, #35e3e9 94%, #8cfaff);
    --weekly-fill: radial-gradient(ellipse at 0 100%, #039b9c7d, transparent 52%),
        radial-gradient(ellipse at 0 0, #235b7680, transparent 40%),
        radial-gradient(ellipse at 100% 100%, #08757a58, transparent 38%), #07111c;
    display: flex;
    align-items: flex-start;
    gap: clamp(4px, .95vw, 16px);
    min-height: clamp(40px, 5.45vw, 92px);
    padding: clamp(5px, .64vw, 11px) clamp(6px, 1.15vw, 19px);
    overflow: hidden;
}
.weekly-stat-percent, .weekly-stat-trophy {
    --weekly-border: linear-gradient(140deg, #c9fcff, #5fe8f5 14%, #3b6274 49%, #906cbb 78%, #d3a7f9);
    --weekly-fill: radial-gradient(ellipse at 0 100%, #05949679, transparent 50%),
        radial-gradient(ellipse at 0 0, #19607b81, transparent 38%),
        radial-gradient(ellipse at 100% 12%, #231d55, transparent 64%), #07101e;
}
.weekly-icon {
    display: inline-block;
    flex: none;
    width: 1.05em;
    height: 1.05em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.weekly-stat > .weekly-icon { width: clamp(13px, 2.14vw, 37px); height: auto; margin-top: .35em; }
.weekly-stat-trend > .weekly-icon { color: var(--wr-cyan); }
.weekly-stat-trophy > .weekly-icon { color: #ffe277; filter: drop-shadow(0 0 5px #ffe35684); }
.weekly-stat-copy { position: relative; z-index: 1; min-width: 0; }
.weekly-stat p { color: #e6f1fb; font-size: .88em; font-weight: 700; line-height: 1.16; }
.weekly-stat strong { display: block; margin-top: .08em; color: #f8faff; font-size: clamp(18px, 3.05vw, 52px); line-height: 1.03; }
.weekly-stat strong small { font-size: .73em; }
.weekly-stat-trend strong { color: #49ffe0; text-shadow: 0 0 15px #16f6dd69; }
.weekly-stat-art { position: absolute; z-index: 0; right: 5%; bottom: 7%; width: 37%; height: 82%; color: #538ca8; pointer-events: none; }
.weekly-stat-trend .weekly-stat-art { right: 0; bottom: 0; width: 41%; color: #40e6df; }
.weekly-stat-trend .weekly-stat-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0b586939, #178d9080); clip-path: polygon(0 100%, 11% 77%, 23% 84%, 38% 55%, 51% 69%, 67% 25%, 79% 38%, 90% 8%, 100% 26%, 100% 100%); }
.weekly-stat-trend .weekly-stat-art .weekly-icon { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .82; stroke-width: .38; }
.weekly-stat-cards .weekly-stat-art > i { position: absolute; top: 18%; right: 14%; padding: 5% 13% 36%; border: 1px solid #7183a5; background: #20415f; font-style: normal; transform: rotate(-14deg); opacity: .45; }
.weekly-stat-cards .weekly-stat-art > i + i { top: 28%; right: 0; transform: rotate(20deg); }
.weekly-stat-percent .weekly-stat-art {
    width: auto;
    aspect-ratio: 1;
    right: 11%;
    bottom: 12%;
    height: 69%;
    clip-path: circle(49%);
    background: conic-gradient(#bd58ff 0deg, #8428de var(--itm-angle, 0deg), #31145d var(--itm-angle, 0deg));
}
.weekly-stat-percent .weekly-stat-art::after { content: ""; position: absolute; inset: 12%; clip-path: circle(50%); background: #111830; }
.weekly-stat-trophy .weekly-stat-art { right: 8%; width: 26%; color: #a4aaff; opacity: .48; }

.weekly-card h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5em;
    padding: clamp(4px, .53vw, 9px) clamp(6px, 1.06vw, 18px);
    border-bottom: 1px solid #305777;
    background: linear-gradient(180deg, #1b3456a8, #081322 93%);
    color: #f0f7ff;
    font: 700 clamp(11px, 1.42vw, 24px)/1.1 Rajdhani, 'Noto Sans JP', system-ui, sans-serif;
    white-space: nowrap;
}
.weekly-card h2::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: clamp(20px, 6vw, 93px);
    background: repeating-linear-gradient(132deg, transparent 0 10px, #19bbf43c 10px 16px, transparent 16px 22px);
    clip-path: polygon(41% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
.weekly-match-card h2::after, .weekly-lower h2::after { background: repeating-linear-gradient(132deg, transparent 0 10px, #b760fa57 10px 16px, transparent 16px 22px); }
.weekly-card h2 small { margin-inline-start: .22em; color: #dbe6f0; font: 500 .66em 'Noto Sans JP', system-ui, sans-serif; }
.weekly-match-card h2 > span, .weekly-lower h2 > span:not(.weekly-sample-tag) { font-family: 'Ponder Orbitron', Rajdhani, sans-serif; font-style: italic; font-size: .86em; }
.weekly-card-body { padding: clamp(4px, .75vw, 12px); }

.weekly-compare table { width: 100%; border-collapse: collapse; font-size: .91em; }
.weekly-compare th, .weekly-compare td { padding: clamp(2px, .205vw, 4px) 3px; text-align: center; white-space: nowrap; }
.weekly-compare th:first-child { padding-inline-start: .68em; text-align: left; }
.weekly-compare thead { background: linear-gradient(90deg, #13233f, #0a2d40 49%, #101d36); }
.weekly-compare thead th:nth-child(2), .weekly-compare td:nth-child(2) { color: var(--wr-cyan); }
.weekly-compare tbody th { font-weight: 750; }
.weekly-compare tbody tr + tr { border-top: 1px solid #203b55; }
.weekly-compare-secondary { color: #ccddf1; font-size: .88em; }
.weekly-metric-help { display: inline-grid; place-items: center; margin-left: .55em; width: 1em; height: 1em; clip-path: circle(50%); outline: none; background: #2a4057; color: #cad8ea; font-size: .73em; cursor: help; }
.weekly-compare [data-delta] {
    display: inline-block;
    min-width: 4.2em;
    padding: 1px .42em;
    border: 1px solid #17856e99;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
    background: linear-gradient(145deg, #123a36, #071a22);
    color: #4cffe0;
    font-size: .85em;
}
.weekly-compare [data-delta="up"]::before { content: "▲ "; font-size: .72em; }
.weekly-compare [data-delta="down"] { border-color: #8148a6; background: #2a1642; color: #e6abff; }
.weekly-compare [data-delta="down"]::before { content: "▼ "; font-size: .72em; }
.weekly-compare [data-delta="flat"] { border-color: transparent; background: transparent; color: var(--wr-muted); }
.weekly-bar { display: inline-block; width: clamp(10px, 5.7vw, 104px); height: .51em; margin-left: .5em; vertical-align: .13em; background: linear-gradient(90deg, #435875, #33445f); clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px); overflow: hidden; }
.weekly-bar i { display: block; height: 100%; background: linear-gradient(90deg, #16dfe8 20%, #63ffff); }
.weekly-metric-note { margin-top: 3px !important; color: var(--wr-muted); font-size: .68em; }

.weekly-hand-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(5px, 1.02vw, 18px); }
.weekly-hand-body h3 { font-size: .83em; margin: 0 0 .36em; }
.weekly-range { display: grid; grid-template-columns: .57fr repeat(13, minmax(0, 1fr)); gap: clamp(1px, .145vw, 3px); width: 100%; max-width: 330px; font-size: clamp(6px, .78vw, 11px); line-height: 1; text-align: center; }
.weekly-range > span { align-self: center; }
.weekly-range .weekly-cell { height: clamp(5px, .91vw, 16px); background: hsl(var(--range-hue) 55% 25%); cursor: default; }
.weekly-range .weekly-cell.is-dealt { background: hsl(var(--range-hue) 92% var(--range-light)); box-shadow: inset 0 0 0 1px #c0faff3d; }
.weekly-range .weekly-cell.is-unknown { background: #16253b; }
.weekly-hand-stats { border-left: 1px solid #456687; padding-left: clamp(4px, .82vw, 13px); }
.weekly-action-samples { margin: 0 0 .65em; padding: 0; list-style: none; border-top: 1px solid #3b5a76; }
.weekly-action-samples li { display: grid; grid-template-columns: 1.1em 2.65em 1fr auto; gap: .35em; align-items: center; padding: .24em .28em; border-bottom: 1px solid #263b52; }
.weekly-action-samples li b { color: #3bf7fc; font-size: .9em; }
.weekly-action-samples li[data-action="LIMP"] b { color: #d1b4ff; }
.weekly-action-samples li[data-action="3BET"] b { color: #df83fb; }
.weekly-action-samples li small { color: var(--wr-muted); font-size: .75em; }
.weekly-action-mark { color: #34e6ff; text-align: center; }
.weekly-action-samples li:nth-child(2) .weekly-action-mark { color: #bd72ff; }
.weekly-action-samples li:nth-child(3) .weekly-action-mark { color: #c4d9ee; }
.weekly-hand-recap { --weekly-border: linear-gradient(145deg, #4fedfa, #2b5e83 65%, #9465da); }
.weekly-hand-recap h3 { display: flex; align-items: center; gap: .42em; margin: 0; padding: .38em .48em; background: linear-gradient(90deg, #164366b0, #061425 75%); border-bottom: 1px solid #31516f; }
.weekly-hand-recap h3 .weekly-icon { color: #67eaff; }
.weekly-hand-recap h3 small { font-size: .74em; color: var(--wr-muted); }
.weekly-hand-stats dl { margin: 0; padding: 0 .7em; font-size: .82em; }
.weekly-hand-stats dl > div { display: flex; justify-content: space-between; gap: 3px; padding-block: .29em; }
.weekly-hand-stats dl > div + div { border-top: 1px solid #253c4e; }
.weekly-hand-stats dd { margin: 0; white-space: nowrap; color: #ecfcff; font-weight: 700; }

.weekly-lower .weekly-card-body { min-height: clamp(58px, 7.1vw, 114px); display: grid; align-items: center; padding: clamp(4px, .68vw, 11px) clamp(6px, .8vw, 14px); }
.weekly-ladder-board { display: grid; grid-template-columns: minmax(0, 1.41fr) minmax(0, .86fr); align-items: center; gap: .55em; }
.weekly-ladder-rank { position: relative; isolation: isolate; min-width: 0; display: grid; grid-template-columns: .38fr auto .38fr; align-items: center; justify-content: center; }
.weekly-ladder-rank-value { color: #baf8ff; white-space: nowrap; text-shadow: 0 0 13px #4ec9f769; }
.weekly-ladder-rank-value > span { font-size: clamp(14px, 2.6vw, 44px); margin-inline-end: .14em; font-style: italic; font-weight: 750; }
.weekly-ladder-rank-value > strong { font-size: clamp(24px, 4.4vw, 72px); font-weight: 850; font-style: italic; line-height: 1; }
.weekly-ladder-rank-value > small { color: #c2ecff; font-size: clamp(8px, 1.1vw, 18px); margin-inline-start: .14em; }
.weekly-ladder-stage {
    position: absolute;
    z-index: -1;
    left: 14%;
    right: 14%;
    bottom: -6%;
    height: 30%;
    clip-path: ellipse(50% 48%);
    background: repeating-radial-gradient(ellipse at center, #05b3ed 0 1px, #06446c 2px 5px, #092134 7px 10px);
    opacity: .68;
}
.weekly-laurel { position: relative; display: block; width: 100%; height: 68%; min-height: 1em; color: #43e3ef; }
.weekly-laurel.is-right { transform: scaleX(-1); }
.weekly-laurel i { position: absolute; display: block; bottom: calc(var(--leaf) * 15%); right: calc(7% + var(--leaf) * 8% - var(--leaf) * var(--leaf) * 2%); width: 32%; height: 19%; background: currentColor; clip-path: polygon(0 50%, 39% 9%, 100% 0, 70% 67%, 25% 100%); transform: rotate(calc(var(--leaf) * -10deg)); }
.weekly-stat-art .weekly-laurel { position: absolute; width: 45%; height: 86%; bottom: 5%; left: 0; color: inherit; }
.weekly-stat-art .weekly-laurel.is-right { left: auto; right: 0; }
.weekly-ladder-stats { min-width: 0; padding-left: clamp(4px, .77vw, 13px); border-left: 1px solid #597590; }
.weekly-ladder-change { display: flex; align-items: center; gap: .32em .5em; flex-wrap: wrap; }
.weekly-ladder-change strong { padding: .1em .4em; border: 1px solid #20836e; background: #092b2c; color: #62ffc9; }
.weekly-ladder-change small, .weekly-ladder-stats p { color: #c9dceb; font-size: .72em; }
.weekly-sample-tag { z-index: 1; margin-left: auto; padding: .05em .35em; border: 1px solid #8176a6; background: #11172c; color: #dccbfa; font-size: .61em; }
.weekly-ladder-stats p { margin-top: .3em; }

.weekly-lower .weekly-rival .weekly-card-body { padding-inline: clamp(6px, 1.55vw, 23px); }
.weekly-rival-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .96fr) minmax(52px, 23%); align-items: center; gap: clamp(4px, 1.28vw, 20px); }
.weekly-rival-crest {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: clamp(27px, 4.6vw, 74px);
    aspect-ratio: 1;
    clip-path: polygon(50% 0, 99% 27%, 99% 73%, 50% 100%, 1% 73%, 1% 27%);
    background: linear-gradient(142deg, #d89aff, #60439b 62%, #ec80ff);
    color: #cc6eff;
    font-size: clamp(19px, 3.8vw, 61px);
    line-height: 1;
}
.weekly-rival-crest::before { content: ""; position: absolute; inset: 2px; z-index: -1; clip-path: inherit; background: radial-gradient(ellipse at center, #2b1c53, #0c1230 70%); }
.weekly-rival-identity { min-width: 0; }
.weekly-rival-identity strong { display: block; color: #f1f6ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(12px, 1.94vw, 32px); line-height: 1.12; }
.weekly-rival-identity strong small { font-size: .62em; font-weight: 650; color: #e3ebf1; }
.weekly-rival-identity > small { color: #bdcede; font-size: .85em; white-space: nowrap; }
.weekly-rival-score { display: flex; align-items: baseline; justify-content: center; gap: .25em; padding-left: clamp(4px, .85vw, 14px); border-left: 1px solid #567791; color: var(--wr-cyan); font-size: clamp(15px, 2.45vw, 41px); line-height: 1.1; font-weight: 800; white-space: nowrap; }
.weekly-rival-score span + span { color: #d283ff; }
.weekly-rival-score small { font-size: .67em; }
.weekly-rival button { font-size: .86em !important; }
.weekly-status { min-height: 0; margin: 0; color: var(--wr-muted); font-size: .69em; }

@media (max-width: 1200px) {
    .weekly-title p:not(.is-status) span { display: none; }
}
@media (max-height: 470px) and (orientation: landscape) {
    #rankedWeeklyPanel { font-size: 10px; inset-block-end: 1.6%; }
    .weekly-shell { padding: 4px; }
    .weekly-titlebar { min-height: 26px; padding-bottom: 2px; }
    .weekly-content { gap: 4px; margin-top: 4px; }
    .weekly-stat { min-height: 33px; padding: 3px 5px; }
    .weekly-stat strong { font-size: clamp(16px, 2.55vw, 23px); }
    .weekly-card h2 { padding: 2px 5px; }
    .weekly-card-body { padding: 4px 5px; }
    .weekly-lower .weekly-card-body { min-height: 0; padding: 3px 5px; }
    .weekly-title { padding-inline-start: 0; }
    .weekly-compare th, .weekly-compare td { padding: 1px 2px; line-height: 1.12; }
    .weekly-compare [data-delta] { padding-block: 0; }
    .weekly-metric-note { line-height: 1.12; }
    .weekly-hand-stats { min-width: 0; }
    .weekly-hand-stats > h3 { font-size: .76em; overflow-wrap: anywhere; }
    .weekly-action-samples li { padding-block: .16em; }
    .weekly-title p:not(.is-status) { display: none; }
    #rankedWeeklyPanel button { min-height: 21px; }
    .weekly-range .weekly-cell { height: max(5px, 1.56dvh); }
    .weekly-ladder-board { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
    .weekly-ladder-rank-value > strong { font-size: clamp(23px, 4.03vw, 37px); }
    .weekly-ladder-change { column-gap: 3px; }
    .weekly-ladder-stats p { line-height: 1.1; }
    .weekly-lower .weekly-rival .weekly-card-body { padding-inline: 5px; }
    .weekly-rival-row { line-height: 1.12; gap: clamp(3px, .65vw, 7px); }
    .weekly-rival-crest { width: clamp(26px, 3.85vw, 40px); font-size: clamp(17px, 3vw, 32px); }
}
@media (orientation: portrait) {
    #rankedWeeklyPanel { inset: 17% 2% 4% 18.4%; }
    .weekly-titlebar { flex-wrap: wrap; }
    .weekly-title p:not(.is-status) { display: none; }
    .weekly-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weekly-main, .weekly-lower { grid-template-columns: 1fr; }
}

#rankedWeeklyPanel .ranked-report-tabs {
    display: flex; flex: none; min-width: 0;
    margin-top: .42em; border: 1px solid #37627a;
    overflow-x: auto; overscroll-behavior-inline: contain;
    background: #071824; touch-action: pan-x;
    scrollbar-width: thin; scrollbar-color: #3c6d88 transparent;
}
#rankedWeeklyPanel .ranked-report-tabs button {
    flex: none; min-width: 4.5em; min-height: clamp(28px, 3.6vh, 38px); padding: .25em .9em;
    color: #b6ccdf; border: 0; border-inline-end: 1px solid #37627a; border-radius: 0;
    background: #0a1b2a; clip-path: none;
    font: 700 clamp(10px, 1vw, 15px)/1.2 "Segoe UI", sans-serif; white-space: nowrap;
}
#rankedWeeklyPanel .ranked-report-tabs button::before { content: none; }
#rankedWeeklyPanel .ranked-report-tabs button:hover { color: #efffff; background: #132d3d; }
#rankedWeeklyPanel .ranked-report-tabs [aria-selected=true] {
    color: #efffff; background: linear-gradient(#183b4e, #102735); box-shadow: inset 0 -2px #65e6ec;
}
.weekly-metric-count { display: inline-block; margin-inline-start: .35em; color: #b2c9d7; white-space: nowrap; }
#rankedWeeklyPanel button:focus-visible {outline:2px solid #8cf5fb;outline-offset:-3px}
#rankedWeeklyPanel [data-report-date] {white-space:nowrap;font-variant-numeric:tabular-nums}
#rankedWeeklyPanel[data-report-view=daily] [data-weekly-subtitle] {visibility:hidden}
#rankedWeeklyPanel [role=tabpanel][hidden],
#rankedWeeklyPanel [data-weekly-period][hidden],
#rankedWeeklyPanel [data-report-date][hidden] {display:none}

#rankedWeeklyPanel .weekly-title p {min-width:0;overflow:hidden;text-overflow:ellipsis}
