#rankings .rk-tabs{gap:8px;padding-bottom:12px;}
#rankings .rk-tabs [data-tab]{border:1px solid #385a47;border-radius:10px;background:#14271d;color:#b8d9c5;cursor:pointer;transition:background .15s,border-color .15s;}
#rankings .rk-tabs [data-tab]:hover{background:#244633;border-color:#76b38c;}
#rankings .rk-tabs [data-tab][aria-pressed="true"]{background:#cce9d8;color:#123120;border-color:#cce9d8;}
#rankings .rk-tabs [data-tab="prestige"]{border:1px solid #6acb9a;background:linear-gradient(120deg,#204b35,#193c2d);color:#b9f0d2;font-weight:650;box-shadow:inset 0 0 0 1px #71d8a326;}
#rankings .rk-tabs [data-tab="prestige"][aria-pressed="true"]{background:linear-gradient(110deg,#397d5e,#275b42);color:#edfff4;border-color:#90e1b4;box-shadow:0 0 15px #64d59720;}
.pw{margin-top:20px;}
.pw-hero{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:24px;padding:23px 26px;border:1px solid #527553;border-radius:18px;background:linear-gradient(110deg,#203c2c,#172a20);}
.pw-prize{height:106px;display:grid;align-content:center;justify-items:center;gap:12px;border:1px solid #b9cda780;border-radius:12px;background:linear-gradient(135deg,#d9e4cd18,#78c49a19);box-shadow:inset 0 0 20px #e0e6c710;transform:rotate(-6deg);color:#e6d69f;}
.pw-prize>span{font-size:38px;}.pw-prize small{font-size:8px;letter-spacing:1px;}
.pw-title h2{font-size:25px;color:#e1f1e6;margin:8px 0;}.pw-title p{font-size:12px;color:#b5cabb;margin:6px 0;}
.pw-demo{display:block;font-size:10px;color:#8eab99;margin-top:9px;}
.pw-hero-end{display:grid;justify-items:end;gap:17px;}.pw-participants{font-size:12px;color:#accab7;}.pw-participants strong{font-size:29px;color:#d3eedb;font-weight:550;margin-right:7px;}
.pw-hero-end button{font-size:12px!important;min-height:42px;}
.pw-caption{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:21px 0 13px;color:#9cbaa7;font-size:12px;}.pw-caption small{font-size:10px;}
.pw-table,.pw-breakdown{width:100%;border-collapse:collapse;text-align:left;}
.pw-table th,.pw-breakdown th{background:#203326;color:#efd9a4;font-size:12px;padding:13px 12px;white-space:nowrap;}
.pw-table td,.pw-breakdown td{padding:8px 12px;border-top:1px solid #35504080;color:#d4e8da;font-size:12px;white-space:nowrap;}
.pw-table td small{display:block;color:#99b8a3;font-size:10px;margin-top:3px;}.pw-table .is-you{background:#78572455;}
.pw-table .rk-player-button{gap:9px;}.pw-table .rk-player-button strong{font-size:13px!important;}.pw-table .rk-avatar{width:30px;height:30px;flex-basis:30px;font-size:17px;border-radius:9px;}
.pw-table .rk-avatar small{font-size:6px;margin:0;}.pw-table td.pw-chance{color:#e5d79e;font-weight:600;font-size:13px;}
#rankings .pw-info{display:grid;place-items:center;min-width:32px;min-height:32px;padding:0;border:1px solid #678f75;border-radius:50%;background:#21402e;color:#c1e4cf;font:italic 15px Georgia,serif;cursor:pointer;}
#rankings .pw-info:hover{background:#346044;border-color:#a6d8b8;}
.pw-popup p{font-size:13px;line-height:1.7;color:#b8d0c0;}.pw-popup h3{color:#dfeddf;font-size:17px;margin:24px 0 8px;}
.pw-popup .pw-math{font-size:11px;color:#94b39f;}.pw-popup .rk-table-wrap{margin:18px 0;}
.pw-popup .pw-breakdown td{padding:11px 12px;}
.pw-example{display:flex;gap:12px;margin:16px 0;}.pw-example>span{flex:1;display:grid;gap:8px;padding:15px;border:1px solid #42694f;border-radius:10px;background:#203b2a;color:#afceba;font-size:12px;}.pw-example strong{font-size:22px;color:#dfedbd;}
.pw-pages{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:18px;color:#cce0d0;font-size:12px;}
@media(max-width:700px){.pw-hero{grid-template-columns:54px minmax(0,1fr);gap:16px;padding:18px;}.pw-prize{height:82px;}.pw-prize>span{font-size:30px;}.pw-prize small{font-size:6px;}.pw-title h2{font-size:20px;}.pw-hero-end{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;}.pw-participants strong{font-size:23px;}.pw-hero-end button{font-size:10px!important;}.pw-caption small{display:none;}.pw-table{min-width:900px;}.pw-example{flex-wrap:wrap;}.pw-example>span{min-width:110px;}}
.pw-table th.pw-probability-heading{white-space:normal;min-width:145px;max-width:180px;line-height:1.4;}
.pw-table td.rk-rank{font-size:16px;font-weight:600;}
.pw-table th button{display:flex;align-items:center;gap:7px;background:transparent;border:0;color:inherit;font:inherit;font-weight:650;padding:0;cursor:pointer;min-height:30px;}
.pw-table th button:hover{color:#b8ebcf;}
.pw-table tr.is-you{background:linear-gradient(110deg,#8c591f80,#6e542c66);box-shadow:inset 4px 0 #ffc563;}
.pw-table tr.is-you:focus{outline:2px solid #ebc577;outline-offset:-2px;}
.pw-formula{padding:16px;border:1px solid #527655;border-radius:10px;background:#203c2a;color:#dfedbd;font-size:15px;line-height:1.9;}
.pw .rk-audience-toolbar{margin:18px 0;}
.pw-breakdown th span{font-weight:600;}
.pw-quantity{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:3px 7px;box-sizing:border-box;border:1px solid var(--quantity-color);border-radius:7px;color:var(--quantity-color);background:#10251b;font-weight:600;font-variant-numeric:tabular-nums;margin-right:3px;}
.pw-table td{font-size:13px;}
.pw-table .rk-player-button strong{font-size:14px!important;}
.pw-table td.pw-chance{font-size:14px;}
.pw-not-qualified{color:#a5b8ad;font-size:13px;font-weight:500;}
.pw-hero{grid-template-columns:100px minmax(0,1fr) auto;}
.pw-prize:has(.card){height:auto;min-height:150px;display:block;padding:0;border:0;background:none;box-shadow:none;transform:none;}
.pw-prize>.card{width:100%;margin:0;cursor:pointer;animation:none;opacity:1;transform:none;}
.prestige-draw-explanation a.pack-info-done{display:inline-block;text-decoration:none;text-align:center;margin:12px 0;}
.prestige-draw-explanation>small{display:block;color:#a0b6a6;font-size:11px;}
@media(max-width:700px){.pw-hero{grid-template-columns:76px minmax(0,1fr);}.pw-prize:has(.card){min-height:114px;}}
.pw-countdown{margin-top:12px;}
.pw-countdown small{display:block;font-size:10px;color:#b4c9bc;margin-bottom:4px;}
.pw-countdown strong{display:block;color:#ffdf7e;font-size:25px;font-weight:550;font-variant-numeric:tabular-nums;line-height:1.3;}
.pw-participants{display:grid;justify-items:end;gap:4px;}
.pw-participants strong{margin:0;font-size:29px;font-weight:650;}
.pw-participants>span{font-size:12px;}
.pw-hero{grid-template-columns:125px minmax(0,1fr) auto;}
.pw-prize:has(.card){min-height:187px;}
.pw-table tr.pw-cutoff{position:relative;}
.pw-table tr.pw-cutoff>td{border-top-color:transparent;}
.pw-table tr.pw-cutoff::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:#d6bc7080;pointer-events:none;z-index:1;}
@media(max-width:700px){.pw-hero{grid-template-columns:90px minmax(0,1fr);}.pw-prize:has(.card){min-height:135px;}.pw-countdown strong{font-size:19px;}.pw-participants strong{font-size:23px;}}
.pw-hero-end [data-prestige-history]{margin-top:-8px;justify-self:end;}
.rk-dialog:has(.pw-history){width:min(1180px,calc(100vw - 32px));}
.pw-history .pw-history-week>small{font-size:12px;line-height:1.5;color:#b9cfc0;margin:0;}
.pw-history .rk-player-button{display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:#d4e8da;text-align:left;cursor:pointer;}
.pw-history .rk-player-button:hover strong{color:#f1d9a1;}
.pw-history .rk-player-button:focus-visible{outline:2px solid #a8d7bb;outline-offset:4px;border-radius:5px;}
.pw-history .pw-table{min-width:930px;}
/* Current Prestige board: nine genuine columns, including completed N/S packs. */
html body #rankings .pw-table .pw-heading-short{display:none!important;}
@media(max-width:650px){
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td){box-sizing:border-box;min-width:0!important;max-width:none!important;padding:5px 1px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:9px!important;text-align:center;vertical-align:middle;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(1){width:7%!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(2){width:22%!important;text-align:left;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(3){width:12%!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(4),html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(5),html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(6){width:11%!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(7){width:12%!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(8),html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact :is(th,td):nth-child(9){width:7%!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact th button{width:100%;min-width:0!important;min-height:36px;padding:0!important;gap:0!important;font-size:9px!important;line-height:1.2!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact .pw-heading-full{display:none!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact .pw-heading-short{display:inline!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact .pw-heading-short{font:600 9px/1.2 system-ui,sans-serif!important;white-space:nowrap;}
 html body #rankings[data-ranking-tab="prestige"] .rk-table-wrap:has(table.pw-table-compact)::before{display:none!important;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact .rk-player-button{width:100%;min-width:0;max-width:100%;padding:0;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact .rk-player-button strong,html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact td>strong{min-width:0;max-width:100%;font-size:10px!important;line-height:1.25;white-space:normal!important;overflow-wrap:anywhere;}
 html body #rankings[data-ranking-tab="prestige"] table.pw-table-compact td>small{display:block;font-size:8px!important;margin:1px 0 0;}
}
/* Historical draw snapshots stay intact; give each column its own real space. */
html body dialog.pw-history{width:min(1080px,calc(100vw - 24px));box-sizing:border-box;}
html body dialog.pw-history .rk-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
html body dialog.pw-history table.pw-history-table{width:100%!important;min-width:640px!important;table-layout:fixed;}
html body dialog.pw-history table.pw-history-table :is(th,td){box-sizing:border-box;width:auto!important;min-width:0!important;max-width:none!important;padding:9px 6px;white-space:normal!important;overflow-wrap:anywhere;text-align:center;vertical-align:middle;}
html body dialog.pw-history table.pw-history-table :is(th,td):nth-child(2){text-align:left;}
html body dialog.pw-history table.pw-history-table th{font-size:11px;line-height:1.3;}
html body dialog.pw-history table.pw-history-table .rk-player-button{max-width:100%;min-width:0;white-space:normal;}
html body dialog.pw-history table.pw-history-table .rk-player-button strong{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px!important;}
.pw-history .pw-info{display:grid;place-items:center;width:32px;height:32px;border:1px solid #678f75;border-radius:50%;background:#21402e;color:#c1e4cf;font:italic 15px Georgia,serif;cursor:pointer;}
@media(max-width:700px){.pw-hero-end{flex-wrap:wrap;}.pw-hero-end [data-prestige-history]{margin-top:0;margin-left:auto;}}
