/* Original BP emblems, a gold/teal war ledger; no extra enclosing page frame. */
.battle-ranks-page{--bp-gold:#e5c275;--bp-teal:#75cbb1;--bp-muted:#b8b8a5;display:grid;gap:22px}
.harbor-layout .bp-hero.page-head{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:24px;align-items:center;overflow:hidden;padding:30px;margin:0;border:1px solid #ae915d70;background:radial-gradient(ellipse at 20% 20%,#89672938,transparent 65%),linear-gradient(115deg,#17221eeb,#080f0deb);box-shadow:inset 0 1px #f2d69b24}
.bp-hero::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(130deg,transparent 0 45px,#d6b47006 46px 47px);mask-image:linear-gradient(90deg,transparent,#000)}
.bp-hero>*{position:relative;z-index:1}.bp-emblem{height:112px;border:1px solid #bda26988;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#8d6c2838,#08100e 69%);box-shadow:0 0 0 7px #0b1210,0 0 0 8px #bda26930,0 12px 25px #0006}
.bp-emblem img{width:auto;height:48px;max-width:55px;image-rendering:pixelated;filter:drop-shadow(0 4px 7px #000)}
.battle-ranks-page .bp-eyebrow{margin:0 0 9px;font:700 10px/1.4 Georgia,serif;letter-spacing:2px;color:var(--bp-gold)}
.harbor-layout .bp-hero h1{font-size:29px;line-height:1.2;margin:0 0 8px;letter-spacing:.2px}
.bp-hero-copy h2{font:normal 18px/1.4 Georgia,serif;margin:7px 0;color:var(--bp-gold)}
.bp-hero .bp-captain{margin:0;font-size:13px;overflow-wrap:anywhere}.bp-captain span{color:var(--bp-muted)}
.harbor-layout .bp-hero .bp-hero-caption{font:12px/1.6 Georgia,serif;color:var(--bp-muted);margin:7px 0 0;max-width:370px}
.bp-total{min-width:215px;text-align:right;border-left:1px solid #bda26938;padding-left:28px;display:grid;justify-items:end;gap:6px}
.bp-total>span{font:10px/1.5 Georgia,serif;letter-spacing:1.3px;color:var(--bp-muted)}
.bp-total>strong{font:normal clamp(29px,3vw,41px)/1.1 Georgia,serif;color:#f7dda0;font-variant-numeric:tabular-nums}
.bp-total small{font-size:11px;color:var(--bp-muted)}
.bp-total .bp-refresh{margin-top:9px;font-size:11px;padding:5px 10px;border-color:#92805d;background:#15221c}
.bp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bp-stats article{border-top:2px solid #b99a5b88;background:linear-gradient(110deg,#18201ab8,#080e0ba8);padding:16px 20px;min-width:0}
.bp-stats article:last-child{border-top-color:#75cbb188}
.bp-stats article>span{display:block;color:var(--bp-muted);font-size:12px}
.bp-stats article>strong{display:block;font:normal 28px/1.3 Georgia,serif;color:#eed6a0;margin:8px 0 5px;font-variant-numeric:tabular-nums}
.bp-stats strong small{font-size:13px;color:var(--bp-muted)}
.bp-stats article p{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere;color:#d8d6bd}
.bp-promotion{padding:22px 24px;background:linear-gradient(110deg,#12332980,#0a1511bd);border:1px solid #7ca48a4a}
.bp-promotion-head,.bp-collection-head{display:flex;justify-content:space-between;align-items:center;gap:14px}
.bp-promotion h2,.bp-collection-head h2{font:normal 22px/1.3 Georgia,serif;margin:0;color:#f0e4be}
.bp-promotion-head>span{font:normal 24px Georgia,serif;color:var(--bp-teal)}
.bp-promotion progress{display:block;appearance:none;width:100%;height:12px;margin:19px 0 10px;border:1px solid #8b9c6c70;background:#06100c;accent-color:#9fbf76;overflow:hidden}
.bp-promotion progress::-webkit-progress-bar{background:#06100c}
.bp-promotion progress::-webkit-progress-value{background:linear-gradient(90deg,#638a61,#d7c57b)}
.bp-promotion progress::-moz-progress-bar{background:linear-gradient(90deg,#638a61,#d7c57b)}
.bp-progress-labels{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#d1cfb5}
.bp-progress-labels>span:last-child{text-align:right}
.bp-promotion>p{margin:12px 0 0;font-size:11px;color:var(--bp-muted)}
.bp-collection-head>span{font-size:12px;color:var(--bp-muted);white-space:nowrap}
.bp-filters{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}
.bp-filters button{display:flex;gap:10px;align-items:center;padding:8px 12px;background:#101b14;border-color:#776c4c77;color:#d0c9ad;font-size:12px;box-shadow:none}
.bp-filters button.active{background:linear-gradient(#715e32,#302b1b);border-color:#c8a660;color:#fff0c1}
.bp-filters button>span{font-size:10px;padding:1px 5px;border-radius:2px;background:#0005;color:#e2cf9b}
.bp-rank-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.bp-rank-card{position:relative;min-width:0;padding:13px 11px;text-align:center;border:1px solid #a18b543d;background:linear-gradient(145deg,#1c2317be,#080e0bd9);display:flex;flex-direction:column;align-items:center}
.bp-rank-card.current{border-color:#e5c275;box-shadow:inset 0 0 24px #bda05514,0 0 13px #d7ba6a15;background:linear-gradient(135deg,#4b3d1e99,#172216)}
.bp-rank-card.earned{border-bottom:2px solid #75cbb169}.bp-rank-card.locked{background:#0a110dd1}
.bp-rank-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;font:10px/1.5 Georgia,serif;color:#c9b980}
.bp-rank-card-top small{font-size:9px;color:#a4af99}.bp-rank-card.current .bp-rank-card-top small{color:#ffe5a3}
.bp-rank-art{height:58px;display:grid;place-items:center;width:100%;margin:8px 0 4px;background:radial-gradient(ellipse,#b79c4826,transparent 65%)}
.bp-rank-art img{width:auto;height:30px;max-width:40px;image-rendering:pixelated;filter:drop-shadow(0 3px 3px #000)}
.bp-no-emblem{font:24px Georgia,serif;color:#8f9d87}
.bp-rank-card h3{font:normal 13px/1.4 Georgia,serif;margin:0 0 12px;min-height:36px;overflow-wrap:anywhere}
.bp-rank-card>strong{font:normal 15px/1.3 Georgia,serif;color:#e5cf94;margin-top:auto;font-variant-numeric:tabular-nums}
.bp-rank-card strong small{font-size:10px;color:#adad94}
.bp-rank-card>p{font:10px/1.5 Georgia,serif;margin:6px 0 0;color:#a5b39e}
.bp-rank-card.current>p{color:#edd5a2}.bp-empty{grid-column:1/-1;padding:24px;text-align:center;color:var(--bp-muted)}
.bp-source{border-top:1px solid #ae915d55;padding:19px 0 0;display:flex;align-items:center;justify-content:space-between;gap:20px}
.bp-source strong{font:normal 15px Georgia,serif;color:#d9c993}.bp-source p{font-size:11px;line-height:1.6;color:var(--bp-muted);max-width:760px;margin:7px 0 0}
.bp-source a{font-size:12px;flex-shrink:0}
@media(max-width:1100px){.bp-rank-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.harbor-layout .bp-hero.page-head{grid-template-columns:90px minmax(0,1fr) auto;gap:20px;padding:24px}.bp-emblem{height:90px}.bp-total{min-width:190px;padding-left:20px}}
@media(max-width:900px){.bp-rank-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.harbor-layout .bp-hero.page-head{grid-template-columns:80px minmax(0,1fr)}.bp-emblem{height:80px}.bp-total{grid-column:1/-1;grid-template-columns:1fr auto;justify-items:start;text-align:left;border:0;border-top:1px solid #bda26938;padding:16px 0 0}.bp-total>strong{grid-column:1;grid-row:2}.bp-total>.bp-refresh{grid-column:2;grid-row:1/4;align-self:center;margin:0}.bp-total>small{grid-column:1}}
@media(max-width:650px){.battle-ranks-page{gap:16px}.bp-rank-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bp-stats{gap:7px}.bp-stats article{padding:13px 10px}.bp-stats article>strong{font-size:23px}.bp-stats article>span,.bp-stats article p{font-size:11px}.bp-promotion{padding:18px 14px}.bp-source{display:block}.bp-source a{display:inline-block;margin-top:13px}}
@media(max-width:450px){.bp-rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.harbor-layout .bp-hero.page-head{padding:19px 15px;gap:15px;grid-template-columns:65px minmax(0,1fr)}.bp-emblem{height:65px}.bp-emblem img{height:35px;max-width:40px}.harbor-layout .bp-hero h1{font-size:24px}.bp-hero-copy h2{font-size:15px}.bp-stats{grid-template-columns:minmax(0,1fr)}.bp-stats article{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px}.bp-stats article>strong{grid-column:2;grid-row:1/3;margin:0}.bp-stats article p{grid-column:1;grid-row:2}.bp-filters{gap:6px}.bp-filters button{padding:7px 9px;font-size:11px}.bp-hero .bp-hero-caption{display:none}}
/* User-selected classic vertical ledger instead of the earlier card grid. */
.bp-rank-table-wrap{max-height:620px;overflow:auto;border:2px ridge #8d774c;scrollbar-color:#b29b60 #1b1009}
.bp-rank-table{width:100%;table-layout:fixed;border-collapse:collapse;background:linear-gradient(#1c0d04b3,#190c05d4),url('/assets/original/panel.jpg') center top}
.bp-rank-table th{position:sticky;top:0;z-index:2;padding:10px 15px;background:linear-gradient(#55534c,#070908 55%,#28251c);color:#f2e3bf;border-bottom:2px ridge #947a4b;font-size:15px}
.bp-rank-table th:first-child{width:72%}.bp-rank-table th:last-child{text-align:right}
.bp-rank-table .bp-rank-card{display:table-row;padding:0;border:0;text-align:left;box-shadow:none;background:#351b0829}
.bp-rank-table .bp-rank-card:nth-child(even){background:#05090459}
.bp-rank-table .bp-rank-card.current{background:linear-gradient(90deg,#9c742e66,#3d2c0f88);box-shadow:inset 3px 0 #f1cf7e}
.bp-rank-table td{padding:10px 15px;border-bottom:1px solid #a88b4840;color:#e8cf92;vertical-align:middle;height:58px}
.bp-rank-table td:last-child{text-align:right;border-left:1px solid #a88b4855;font-variant-numeric:tabular-nums}
.bp-rank-table td:last-child>strong{font-size:15px}.bp-rank-table td:last-child>small{display:block;font-size:10px;color:#a9a386}
.bp-list-art{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;vertical-align:middle;margin-right:13px}
.bp-list-art img{width:auto;height:auto;max-width:30px;max-height:30px;image-rendering:pixelated;filter:drop-shadow(0 2px 2px #000)}
.bp-list-name{display:inline-block;vertical-align:middle;max-width:calc(100% - 52px);overflow-wrap:anywhere}
.bp-list-name strong{font-size:14px;font-weight:normal}.bp-list-name small{display:block;margin-top:3px;color:#b8b296;font-size:10px}
.bp-rank-table .current .bp-list-name strong{color:#fff0c8;font-weight:bold}
@media(max-width:450px){.bp-rank-table th,.bp-rank-table td{padding:9px 8px}.bp-list-art{margin-right:5px;width:28px}.bp-list-name{max-width:calc(100% - 38px)}.bp-list-name strong{font-size:12px}.bp-rank-table td:last-child>strong{font-size:12px}}

/* Source-guided transparent HD redraws: smooth downsampling, page only. */
.battle-ranks-page .bp-emblem img{width:96px;height:96px;max-width:96px;object-fit:contain;image-rendering:auto}
.battle-ranks-page .bp-list-art{width:84px;height:84px;margin-right:18px}
.battle-ranks-page .bp-list-art img{width:80px;height:80px;max-width:80px;max-height:80px;object-fit:contain;image-rendering:auto}
.battle-ranks-page .bp-list-name{max-width:calc(100% - 110px)}
@media(max-width:450px){.battle-ranks-page .bp-emblem img{width:56px;height:56px;max-width:56px}.battle-ranks-page .bp-list-art{width:60px;height:60px;margin-right:8px}.battle-ranks-page .bp-list-art img{width:56px;height:56px;max-width:56px;max-height:56px}.battle-ranks-page .bp-list-name{max-width:calc(100% - 76px)}}

/* One continuous war record instead of five detached summary cards. */
.battle-ranks-page .bp-summary{min-width:0;border:1px solid #ae915d70;background:radial-gradient(ellipse at 12% 0,#89672930,transparent 58%),linear-gradient(115deg,#17221ef2,#080f0df2);box-shadow:inset 0 1px #f2d69b24}
.harbor-layout .bp-summary .bp-hero.page-head{border:0;background:none;box-shadow:none;padding:28px 30px}
.bp-summary .bp-hero::after{display:none}
.bp-summary .bp-stats{gap:0;margin:0 30px;padding:22px 0;border-top:1px solid #ae915d55}
.bp-summary .bp-stats article{border:0;border-left:1px solid #ae915d44;background:none;padding:0 24px}
.bp-summary .bp-stats article:first-child{border-left:0;padding-left:0}
.bp-summary .bp-promotion{margin:0 30px 28px;padding:22px 0 0;border:0;border-top:1px solid #ae915d55;background:none}

/* Readable page copy: previous secondary text was only 10–12 px. */
.battle-ranks-page{font-size:16px;line-height:1.6}
.battle-ranks-page .bp-eyebrow{font-size:14px;letter-spacing:1.5px}
.harbor-layout .bp-hero h1{font-size:34px}
.battle-ranks-page .bp-hero-copy h2{font-size:23px}
.harbor-layout .battle-ranks-page .bp-hero .bp-captain,.harbor-layout .bp-hero .bp-hero-caption{font-size:16px}
.harbor-layout .bp-hero .bp-hero-caption{max-width:510px}
.battle-ranks-page .bp-total>span{font-size:14px}
.battle-ranks-page .bp-total small,.battle-ranks-page .bp-total .bp-refresh{font-size:15px}
.battle-ranks-page .bp-total .bp-refresh{padding:8px 14px}
.battle-ranks-page .bp-stats article>span,.battle-ranks-page .bp-stats article p{font-size:16px}
.battle-ranks-page .bp-stats strong small{font-size:16px}
.battle-ranks-page .bp-stats article>strong{font-size:32px}
.battle-ranks-page .bp-promotion h2,.battle-ranks-page .bp-collection-head h2{font-size:27px}
.battle-ranks-page .bp-progress-labels,.battle-ranks-page .bp-promotion>p{font-size:15px}
.battle-ranks-page .bp-promotion progress{height:16px}
.battle-ranks-page .bp-collection-head>span{font-size:15px}
.battle-ranks-page .bp-filters button{font-size:16px;padding:10px 15px}
.battle-ranks-page .bp-filters button>span{font-size:14px}
.battle-ranks-page .bp-rank-table th,.battle-ranks-page .bp-list-name strong,.battle-ranks-page .bp-rank-table td:last-child>strong{font-size:18px}
.battle-ranks-page .bp-list-name small,.battle-ranks-page .bp-rank-table td:last-child>small{font-size:14px}
.bp-source a{font-size:16px}.battle-ranks-page .bp-source strong{font-size:18px}
.battle-ranks-page .bp-source p{font-size:15px;max-width:900px}
@media(max-width:650px){
 .harbor-layout .bp-summary .bp-hero.page-head{padding:22px 18px}
 .bp-summary .bp-stats{margin:0 18px;grid-template-columns:1fr;gap:17px;padding:20px 0}
 .bp-summary .bp-stats article{border-left:0;padding:0;display:block}
 .bp-summary .bp-stats article>strong{margin:4px 0}
 .bp-summary .bp-promotion{margin:0 18px 22px;padding-top:20px}
 .battle-ranks-page .bp-progress-labels{flex-wrap:wrap}
 .battle-ranks-page .bp-collection-head{align-items:flex-start}
 .bp-source{flex-wrap:wrap}
}
@media(max-width:450px){
 .harbor-layout .bp-hero h1{font-size:28px}
 .battle-ranks-page .bp-hero-copy h2{font-size:21px}
 .battle-ranks-page .bp-filters button{font-size:15px;padding:9px 11px}
 .battle-ranks-page .bp-list-name strong,.battle-ranks-page .bp-rank-table td:last-child>strong{font-size:16px}
 .battle-ranks-page .bp-rank-table th{font-size:16px}
 .battle-ranks-page .bp-rank-table th:first-child{width:67%}
}
