/* Script: war-masters-player-profile-design; versie 0.5.2.
   Voorbeeld: neutrale oppervlakken en oranje bediening; Stats-prestatiekleuren blijven gedeeld. */
body:has(.wm-player-example) {
    --background: #111315; --background-light: #17191d; --panel: #1b1e22; --panel-light: #24282d;
    --text: #f4f4f5; --muted: #999fa8; --border: #30343a; --wm-accent: #ff922b;
    background: #111315; color: var(--text);
}
body:has(.wm-player-example) .page-header {
    display: flex; align-items: center; gap: 13px; width: min(1180px, calc(100% - 28px));
    margin: 0 auto; padding: 26px 0 24px; text-align: left;
}
body:has(.wm-player-example) .logo-badge {
    min-width: 40px; height: 40px; margin: 0; border: 1px solid #ffbd7c; border-radius: 11px;
    transform: none; box-shadow: none; background: #ff922b; color: #1b1b1b; font-size: 24px;
}
body:has(.wm-player-example) .page-header h1 { font-size: 22px; letter-spacing: -.7px; text-shadow: none; }
body:has(.wm-player-example) .page-header p { margin: 0 0 0 auto; font-size: 12px; }
body:has(.wm-player-example) .dashboard-tabs { background: #1a1d21; box-shadow: none; border-radius: 12px; margin-bottom: 24px; }
body:has(.wm-player-example) .dashboard-tab { min-width: 105px; padding: 10px 16px; border-radius: 7px; font-weight: 650; }
body:has(.wm-player-example) .dashboard-tab:hover { background: #2b2520; color: #ffb16b; }
body:has(.wm-player-example) .sync-warning { display: none; }
body:has(.wm-player-example) .dashboard-bottom-status,
body:has(.wm-player-example) .dashboard-footer { color: var(--muted); opacity: .7; }
body:has(.wm-player-example) .dashboard-bottom-status { background: transparent; }
.wm-player-example { --wm-accent: #ff922b; padding-bottom: 12px; }
.wm-player-example * { box-sizing: border-box; }
.wm-player-example a:focus-visible { outline: 2px solid #ffb16b; outline-offset: 4px; }
.wm-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #878e97; font-size: 11px; margin-bottom: 25px; }
.wm-breadcrumb a { color: #c4c7cd; text-decoration: none; }
.wm-profile-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.wm-player-avatar { width: 82px; height: 82px; flex: 0 0 82px; display: grid; place-items: center; border-radius: 20px; background: #2a211b; border: 1px solid #654125; color: #ffac61; font-size: 40px; font-weight: 800; }
.wm-identity { min-width: 0; }
.wm-eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #a4a9b2; font-weight: 700; }
.wm-identity h2 { margin: 0 0 7px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.wm-identity-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: #adb1b8; font-size: 12px; }
.wm-tag { color: #818994; font-family: ui-monospace, monospace; }
.wm-profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.wm-badge { display: inline-flex; padding: 4px 8px; border: 1px solid #3c4149; border-radius: 5px; font-size: 10px; color: #c1c5cc; }
.wm-badge-trusted { color: #a9d2b5; border-color: #34523e; background: #192a20; }
.wm-profile-links { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-left: auto; }
.wm-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #ff922b; color: #21160a; padding: 11px 16px; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.wm-button:hover { background: #ffac61; }
.wm-text-link { color: #e7a86d; font-size: 11px; text-decoration: none; }
.wm-text-link:hover { text-decoration: underline; }
.wm-block-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 18px; }
.wm-block-heading h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.wm-block-heading .wm-eyebrow { color: #a0a6af; }
.wm-period-label, .wm-muted { color: #a2a7b0; font-size: 11px; }
.wm-period-label { border: 1px solid #333840; padding: 7px 10px; border-radius: 6px; background: #1c2025; }
.wm-war-spotlight { border: 1px solid #30363b; border-radius: 14px; background: #1a1d21; padding: 23px; }
.wm-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wm-kpi { display: flex; flex-direction: column; padding: 18px 18px 15px; background: #22262b; border: 1px solid #363b43; border-radius: 9px; min-width: 0; }
.wm-kpi.wm-kpi-primary { border-left: 3px solid; }
.wm-kpi-label { color: #acb3bd; font-size: 9px; font-weight: 650; letter-spacing: 1px; }
.wm-kpi > strong { margin: 12px 0; font-size: clamp(26px, 3vw, 40px); font-weight: 780; line-height: 1.1; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; }
.wm-kpi > strong small { color: #8f98a4; font-size: .48em; letter-spacing: -.5px; }
.wm-kpi-note { color: #929ca8; font-size: 10px; line-height: 1.5; }
.wm-kpi-note[class*="metric-"] { padding: 3px 5px; border-radius: 4px; width: fit-content; }
.wm-kpi-primary .wm-kpi-label, .wm-kpi-primary .wm-kpi-note { color: inherit; opacity: .75; }
.wm-profile-tabs { display: flex; gap: 26px; border-bottom: 1px solid #30353c; margin: 29px 0 27px; }
.wm-profile-tabs a { padding: 0 0 13px; border-bottom: 2px solid transparent; color: #929aa6; font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.wm-profile-tabs a[aria-selected="true"], .wm-profile-tabs a[aria-current="true"] { color: #ffab61; border-bottom-color: #ff922b; }
.wm-profile-panel[hidden] { display: none; }
.wm-performance-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.wm-total-card { border: 1px solid #35483e; border-left: 3px solid; border-radius: 10px; padding: 22px 18px 17px; display: flex; flex-direction: column; }
.wm-total-card .wm-eyebrow { color: inherit; font-size: 9px; letter-spacing: .7px; opacity: .8; }
.wm-total-points { display: block; font-size: 42px; line-height: 1.1; letter-spacing: -2px; margin: 6px 0; font-weight: 800; }
.wm-total-card > span:not(.wm-eyebrow) { font-size: 11px; opacity: .8; }
.wm-total-metrics { display: grid; gap: 10px; margin: 22px 0 14px; }
.wm-total-metrics > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.wm-total-metrics > div > span { color: #b7c6be; }
.wm-total-metrics strong { font-variant-numeric: tabular-nums; }
.wm-total-caption { margin: auto 0 0; padding-top: 16px; border-top: 1px solid #ffffff15; font-size: 10px; line-height: 1.6; color: #a5b6ac; }
.wm-week-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wm-week-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ffffff15; border-left: 3px solid; border-radius: 8px; padding: 12px 11px 11px; }
.wm-week-caption { display: flex; justify-content: space-between; align-items: center; gap: 5px; font-size: 10px; }
.wm-week-caption > span { opacity: .65; font-size: 9px; }
.wm-week-points { display: block; font-size: 23px; letter-spacing: -.8px; margin-top: 10px; line-height: 1.1; }
.wm-week-points-label { font-size: 9px; opacity: .7; margin-top: 2px; }
.wm-week-bar { height: 24px; position: relative; margin: 7px 0 9px; border-bottom: 1px solid currentColor; opacity: .35; }
.wm-week-bar > span { display: block; width: 100%; position: absolute; bottom: 0; background: currentColor; border-radius: 3px 3px 0 0; }
.wm-week-metrics { display: grid; gap: 4px; margin-top: auto; }
.wm-week-metrics .performance-metric { font-size: 9px !important; padding: 4px 6px; border-radius: 4px; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 17px; font-size: 9px; color: #9099a5; }
.wm-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.wm-legend > span:first-child { margin-right: auto; }
.wm-legend i { width: 7px; height: 7px; display: block; border-radius: 2px; background: currentColor; }
.wm-history-scroll { overflow-x: auto; border: 1px solid #30353c; border-radius: 10px; }
.wm-history-table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: 12px; }
.wm-history-table th { color: #929ba7; font-size: 10px; font-weight: 600; background: #1b1f24; }
.wm-history-table td, .wm-history-table th { padding: 14px 16px; text-align: left; border-bottom: 1px solid #2b3037; }
.wm-history-table tr:last-child td { border-bottom: 0; }
.wm-table-score { display: inline-block; padding: 5px 9px; border-left: 2px solid; border-radius: 4px; font-weight: 750; }
.wm-timeline { list-style: none; margin: 0; padding: 0; }
.wm-timeline li { position: relative; display: flex; align-items: center; gap: 18px; padding: 17px 0 17px 28px; border-bottom: 1px solid #282d34; }
.wm-timeline li:before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: #3b424c; }
.wm-timeline-dot { position: absolute; width: 9px; height: 9px; left: 0; border-radius: 50%; border: 2px solid #7a8593; background: #1b1f24; }
.wm-timeline-join .wm-timeline-dot { border-color: #6bc38d; }
.wm-timeline-leave .wm-timeline-dot { border-color: #c08978; }
.wm-timeline li > div { display: flex; flex-direction: column; gap: 6px; }
.wm-timeline strong { font-size: 12px; }
.wm-timeline div > span { font-size: 11px; color: #9ca4b0; }
.wm-timeline time { margin-left: auto; color: #8993a0; font-size: 11px; }
.wm-profile-footnote { margin-top: 30px; padding-top: 18px; border-top: 1px solid #2b3037; display: flex; flex-wrap: wrap; gap: 8px 25px; font-size: 10px; color: #79838f; }
@media (max-width: 900px) {
    .wm-performance-layout { grid-template-columns: 185px minmax(0, 1fr); }
    .wm-week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wm-kpi { padding: 14px 12px; }
    .wm-kpi-label { font-size: 8px; }
    body:has(.wm-player-example) .page-header p { display: none; }
}
@media (max-width: 600px) {
    .wm-breadcrumb { margin-bottom: 21px; }
    .wm-profile-heading { flex-wrap: wrap; gap: 13px; margin-bottom: 24px; }
    .wm-player-avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 14px; font-size: 29px; }
    .wm-identity { flex: 1; }
    .wm-identity h2 { font-size: 32px; }
    .wm-identity .wm-eyebrow { font-size: 8px; letter-spacing: 1px; }
    .wm-identity-meta { font-size: 10px; gap: 6px; }
    .wm-profile-links { margin: 4px 0 0; width: 100%; flex-direction: row; align-items: center; gap: 18px; }
    .wm-war-spotlight { padding: 17px 13px; }
    .wm-block-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
    .wm-block-heading h3 { font-size: 18px; }
    .wm-period-label { font-size: 10px; padding: 5px 7px; }
    .wm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .wm-kpi > strong { font-size: 33px; margin: 10px 0; }
    .wm-kpi-note { font-size: 9px; }
    .wm-profile-tabs { gap: 22px; overflow-x: auto; }
    .wm-profile-tabs a { font-size: 11px; }
    .wm-performance-layout { grid-template-columns: minmax(0, 1fr); }
    .wm-total-card { padding: 18px; }
    .wm-total-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
    .wm-total-metrics > div { flex-direction: column; gap: 5px; }
    .wm-total-caption { padding-top: 12px; }
    .wm-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wm-week-points { font-size: 28px; }
    .wm-timeline li { gap: 10px; }
    .wm-timeline time { font-size: 9px; max-width: 93px; text-align: right; }
    .wm-legend > span:first-child { width: 100%; }
    .wm-profile-footnote { flex-direction: column; }
}

/* v0.2.0 — illustrated war identity and exact performance graphics. */
body:has(.wm-player-example) { --background: #0c1118; --background-light: #111923; background: #0c1118; }
body:has(.wm-player-example) .page-header { padding-top: 22px; padding-bottom: 19px; }
body:has(.wm-player-example) .dashboard-tabs { background: #111922; border-color: #273341; box-shadow: none; border-radius: 5px; margin-bottom: 20px; }
body:has(.wm-player-example) .logo-badge { border-radius: 5px; transform: skew(-6deg); }
.wm-breadcrumb { margin-bottom: 16px; }
.wm-profile-heading {
    position: relative; isolation: isolate; overflow: hidden; min-height: 335px; padding: 44px 40px 86px;
    gap: 26px; border: 1px solid #384553; border-bottom: 2px solid #cf7f3c; border-radius: 9px;
    background: #111923; margin-bottom: 26px;
}
.wm-war-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; }
.wm-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #080e17d9 0%, #080e1780 42%, #080e1700 72%), linear-gradient(0deg, #0c1118e8, transparent 60%); z-index: -2; }
.wm-hero-coordinate { position: absolute; right: 21px; bottom: 18px; font: 8px ui-monospace, monospace; letter-spacing: 3px; color: #c4baa5; opacity: .7; }
.wm-player-avatar {
    position: relative; isolation: isolate; width: 118px; height: 143px; flex: 0 0 118px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 0; border-radius: 0; background: linear-gradient(135deg, #ffe0a0, #a86925 65%, #eac185);
    clip-path: polygon(0 6%, 50% 0, 100% 6%, 94% 69%, 77% 87%, 50% 100%, 23% 87%, 6% 69%);
    color: #ffe0a0; font-family: Impact, 'Arial Narrow', sans-serif; font-size: 52px; text-shadow: 0 3px 1px #0008;
}
.wm-player-avatar:before { content: ''; position: absolute; inset: 5px; z-index: -1; background: linear-gradient(130deg, #393228, #131b25 65%); clip-path: inherit; }
.wm-crest-crown { width: 39px; height: 20px; color: #e4b872; }
.wm-identity { padding-bottom: 5px; }
.wm-identity .wm-eyebrow { display: flex; align-items: center; gap: 10px; color: #d8c9b0; font-size: 9px; letter-spacing: 1.6px; }
.wm-hero-line { width: 20px; height: 1px; background: #e49e57; }
.wm-identity h2 { font-family: Impact, 'Arial Narrow', sans-serif; font-weight: 800; font-size: clamp(45px, 6vw, 76px); font-style: italic; letter-spacing: 1px; line-height: .98; text-transform: uppercase; margin: 14px 0; text-shadow: 0 3px 14px #0007; }
.wm-identity-meta { font-size: 12px; color: #d0d3d5; }
.wm-tag { color: #b0b9c4; }
.wm-profile-badges { margin-top: 13px; }
.wm-badge { border-color: #68717b88; background: #101923aa; color: #e2e7ec; border-radius: 3px; }
.wm-badge-trusted { color: #b8e6cc; border-color: #77ae8c66; background: #14382999; }
.wm-profile-links { position: absolute; left: 184px; bottom: 35px; flex-direction: row; align-items: center; gap: 20px; }
.wm-button { border-radius: 3px; border: 1px solid #ffc17c; background: linear-gradient(120deg, #ffb65a, #f18a2c); box-shadow: 0 3px 0 #7a421b; padding: 11px 19px; }
.wm-war-spotlight { background: transparent; padding: 0; border: 0; border-radius: 0; }
.wm-war-spotlight .wm-block-heading h3 { font-size: 23px; }
.wm-period-label { background: #141e28; border-color: #2e3c4b; border-radius: 3px; }
.wm-kpi-grid { grid-template-columns: 1.18fr 1fr 1fr .92fr; gap: 12px; }
.wm-kpi { position: relative; overflow: hidden; background: #17212c; border: 1px solid #334353; padding: 21px 21px 18px; border-radius: 4px; }
.wm-kpi > strong { position: relative; z-index: 1; font-family: Impact, 'Arial Narrow', sans-serif; font-size: clamp(35px, 4vw, 48px); font-weight: 500; letter-spacing: .5px; margin: 14px 0; }
.wm-kpi-primary { background: linear-gradient(120deg, #193b31, #14262a); }
.wm-kpi-art { position: absolute; right: 12px; bottom: 12px; width: 96px; height: 96px; opacity: .12; transform: rotate(12deg); }
.wm-games-ring { position: absolute; right: -9px; top: 29px; width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(#6cd09c var(--wm-progress, 0%), #364352 0); opacity: .16; mask: radial-gradient(circle, transparent 55%, black 57%); }
.wm-kpi-label { color: #a9bacb; }
.wm-kpi-note { position: relative; z-index: 1; color: #9eafbf; }
.wm-profile-tabs { border-color: #2c3a49; gap: 30px; margin-top: 28px; }
.wm-profile-tabs a { color: #95a8ba; }
.wm-profile-tabs a[aria-selected="true"] { color: #ffb260; border-color: #ff9d44; }
.wm-performance-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
.wm-total-card { border-radius: 4px; padding: 18px; min-height: 244px; }
.wm-total-points { font-family: Impact, 'Arial Narrow', sans-serif; font-size: 48px; font-weight: 500; letter-spacing: 0; }
.wm-total-metrics { grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.wm-total-metrics > div { flex-direction: column; gap: 4px; }
.wm-total-metrics > div > span { font-size: 9px; }
.wm-total-caption { font-size: 9px; line-height: 1.5; padding-top: 11px; }
.wm-chart-panel { min-width: 0; padding: 20px 20px 8px; border: 1px solid #304254; border-radius: 4px; background: linear-gradient(150deg, #1a2734, #101a24); }
.wm-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wm-chart-heading > div { display: flex; flex-direction: column; gap: 2px; }
.wm-chart-heading > div > strong { font-size: 20px; letter-spacing: -.6px; }
.wm-chart-heading .wm-eyebrow { color: #8196ab; font-size: 8px; margin: 0 0 5px; }
.wm-chart-unit { color: #8ca0b6; font-size: 9px; padding-top: 3px; }
.wm-performance-chart { display: block; width: 100%; height: auto; min-height: 160px; margin-top: 12px; overflow: visible; }
.wm-chart-grid { stroke: #829ab426; stroke-width: 1; stroke-dasharray: 3 6; }
.wm-chart-label { font-family: ui-monospace, monospace; font-size: 9px; fill: #8da0b5; }
.wm-chart-empty { color: #8fa1b3; padding: 30px 0; font-size: 12px; }
.wm-week-grid { grid-column: 1 / -1; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.wm-week-card { padding: 10px 8px 9px; border-radius: 3px; border-left-width: 2px; }
.wm-week-caption { font-size: 9px; }
.wm-week-caption > span { font-size: 8px; }
.wm-week-points { font-family: Impact, 'Arial Narrow', sans-serif; font-weight: 500; font-size: 25px; letter-spacing: 0; }
.wm-week-bar { height: 12px; margin-bottom: 8px; }
.wm-week-metrics .performance-metric { padding: 4px; font-size: 8px !important; border-radius: 2px; }
.wm-legend { color: #8299b0; }
.wm-history-scroll { border-color: #2c3b4a; border-radius: 4px; }
.wm-history-table th { background: #172330; }
.wm-history-table td, .wm-history-table th { border-color: #293747; }
.wm-timeline li { border-color: #293747; }
.wm-profile-footnote { border-color: #293747; }
@media (max-width: 1000px) {
    .wm-week-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .wm-week-metrics .performance-metric { font-size: 9px !important; }
    .wm-profile-heading { padding-left: 28px; }
    .wm-profile-links { left: 172px; }
}
@media (max-width: 600px) {
    .wm-profile-heading { min-height: 330px; padding: 33px 20px 90px; align-items: center; flex-wrap: nowrap; gap: 17px; }
    .wm-war-art { object-position: 72% center; opacity: .7; }
    .wm-hero-shade { background: linear-gradient(90deg, #080e17eb, #080e1766), linear-gradient(0deg, #0c1118, transparent 85%); }
    .wm-player-avatar { flex-basis: 67px; width: 67px; height: 86px; font-size: 31px; }
    .wm-crest-crown { width: 25px; height: 13px; }
    .wm-identity h2 { font-size: 43px; }
    .wm-profile-identity { container-type: inline-size; }
    .wm-profile-identity h2 {
        font-size: clamp(20px, 7vw, 43px);
        font-size: clamp(20px, calc(165cqi / var(--wm-name-length, 1)), 43px);
        line-height: 1.1;
        letter-spacing: 0;
        padding-inline-end: .08em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .wm-identity .wm-eyebrow { font-size: 7px; gap: 5px; letter-spacing: .7px; flex-wrap: wrap; }
    .wm-hero-line { width: 10px; }
    .wm-identity-meta { font-size: 10px; gap: 5px; }
    .wm-profile-links { left: 20px; right: 20px; bottom: 32px; width: auto; gap: 15px; flex-wrap: wrap; }
    .wm-button { font-size: 10px; padding: 10px 13px; }
    .wm-hero-coordinate { font-size: 6px; right: 15px; bottom: 11px; }
    .wm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .wm-kpi { padding: 15px 13px; }
    .wm-kpi > strong { font-size: 40px; }
    .wm-games-ring { width: 77px; height: 77px; right: -10px; }
    .wm-kpi-art { width: 75px; height: 75px; right: 4px; }
    .wm-performance-layout { grid-template-columns: minmax(0, 1fr); }
    .wm-total-card { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; }
    .wm-total-card > .wm-eyebrow { grid-column: 1 / -1; }
    .wm-total-card > .wm-total-points { grid-column: 1; }
    .wm-total-card > span:not(.wm-eyebrow) { grid-column: 1; }
    .wm-total-metrics { grid-column: 2; grid-row: 2 / 4; margin: 0; }
    .wm-total-caption { grid-column: 1 / -1; margin-top: 13px; }
    .wm-chart-panel { padding: 18px 12px 8px; }
    .wm-performance-chart { min-height: 115px; }
    .wm-chart-heading > div > strong { font-size: 18px; }
    .wm-chart-unit { font-size: 8px; }
    .wm-chart-label { font-size: 12px; }
    .wm-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wm-week-card { padding: 13px; }
    .wm-week-points { font-size: 32px; }
    .wm-week-caption { font-size: 11px; }
    .wm-week-caption > span { font-size: 10px; }
    .wm-week-metrics .performance-metric { font-size: 10px !important; }
}

/* v0.2.1 — approved WAR MASTERS logo in the example masthead. */
.wm-brand-logo { display: block; width: 230px; flex: 0 0 230px; line-height: 0; }
.wm-brand-logo img { display: block; width: 100%; height: auto; }
body:has(.wm-player-example) .page-header { padding-top: 14px; padding-bottom: 15px; }
body:has(.wm-player-example) .wm-brand-title {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 600px) {
    .wm-brand-logo { width: 185px; flex-basis: 185px; }
    body:has(.wm-player-example) .page-header { justify-content: center; padding-top: 12px; padding-bottom: 13px; }
}

/* v0.3.0 — one card per week, swipeable with visible continuation. */
.wm-weeks-section { grid-column: 1 / -1; min-width: 0; }
.wm-weeks-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 13px; }
.wm-weeks-toolbar h4 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.wm-weeks-toolbar p { color: #8fa3b8; font-size: 10px; margin: 6px 0 0; }
.wm-weeks-buttons { display: flex; gap: 7px; flex-shrink: 0; }
.wm-weeks-buttons[hidden] { display: none; }
.wm-weeks-buttons button { width: 35px; height: 32px; border: 1px solid #435368; border-radius: 4px; color: #ffb268; background: #172330; cursor: pointer; font-size: 18px; }
.wm-weeks-buttons button:hover:not(:disabled) { border-color: #ffad55; background: #28303a; }
.wm-weeks-buttons button:disabled { opacity: .3; cursor: default; }
.wm-week-grid.wm-week-strip { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px; align-items: start; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scroll-padding-inline: 0; padding: 2px 2px 14px; scrollbar-width: thin; scrollbar-color: #7e6954 #18232f; }
.wm-week-strip:focus-visible { outline: 2px solid #ffae61; outline-offset: 5px; }
.wm-week-strip .wm-week-card { scroll-snap-align: start; padding: 17px 15px 14px; min-height: 250px; }
.wm-week-strip .wm-week-caption { font-size: 14px; }
.wm-week-strip .wm-week-caption > span { font-size: 11px; }
.wm-week-strip .wm-week-points { font-size: 40px; margin-top: 14px; }
.wm-week-strip .wm-week-points-label { font-size: 10px; }
.wm-week-strip .wm-week-bar { height: 19px; margin: 11px 0; }
.wm-week-strip .wm-week-metrics { gap: 5px; }
.wm-week-strip .performance-metric { padding: 6px 8px; font-size: 10px !important; }
.wm-week-clans { margin-top: 13px; padding-top: 10px; border-top: 1px solid #ffffff25; }
.wm-week-clans > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.wm-week-clans > summary::-webkit-details-marker { display: none; }
.wm-week-expand { transition: transform .15s ease; }
.wm-week-clans[open] .wm-week-expand { transform: rotate(180deg); }
.wm-week-clan-list { display: grid; gap: 10px; padding-top: 14px; }
.wm-week-clan-result { display: flex; flex-direction: column; gap: 5px; padding-left: 9px; border-left: 2px solid #ffffff3d; }
.wm-week-clan-result strong { font-size: 11px; overflow-wrap: anywhere; }
.wm-week-clan-result > span { font-size: 10px; opacity: .83; line-height: 1.5; }
.wm-week-strip-note { color: #879db3; font-size: 10px; margin: 4px 0 0; line-height: 1.6; }
@media (max-width: 600px) { .wm-week-grid.wm-week-strip { grid-auto-columns: 77%; gap: 11px; } .wm-weeks-toolbar p { max-width: 200px; line-height: 1.5; } .wm-week-strip .wm-week-points { font-size: 43px; } }
@media (prefers-reduced-motion: reduce) { .wm-week-expand { transition: none; } }

/* v0.4.0 — archived weeks continue after the ten-week Stats window. */
.wm-archive-count { margin-left: 8px; color: #8fa4ba; font-size: 10px; font-weight: 500; white-space: nowrap; }
.wm-archive-label { display: inline-block; width: fit-content; margin-top: 9px; padding: 3px 5px; border: 1px solid #ffffff26; border-radius: 3px; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; color: inherit; opacity: .8; }
.wm-week-strip [data-archive-week] .wm-week-points { margin-top: 8px; }

.wm-account-panel {
    padding: 20px;
    border: 1px solid #334353;
    border-radius: 6px;
    background: #101923;
}
.wm-account-panel h3 { margin: 0 0 12px; }
.wm-account-panel dl { display: grid; gap: 4px; }
.wm-account-panel dt { color: #a9bacb; font-size: 12px; }
.wm-account-panel dd { margin: 0 0 8px; overflow-wrap: anywhere; }

/* War Masters gebruikersbio · v0.1.0 */
.wm-profile-intro { margin: 1rem 0; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.035); }
.wm-profile-intro p { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.wm-profile-bio-form { display: grid; gap: .75rem; margin-top: 1.25rem; max-width: 650px; }
.wm-profile-bio-form textarea { width: 100%; box-sizing: border-box; padding: .85rem; border-radius: 8px; background: #18222f; color: #f5f7fa; border: 1px solid #64748b; font: inherit; }
.wm-profile-bio-form button { justify-self: start; }
