.fd-panel{--fd-line:rgba(193,216,216,.19);--fd-muted:#a7babd;box-sizing:border-box;position:relative;margin:16px 0;padding:22px;border:1px solid var(--fd-line);border-radius:16px;background:linear-gradient(125deg,rgba(34,59,69,.7),rgba(12,32,42,.65));box-shadow:inset 0 1px rgba(255,255,255,.06),0 12px 34px rgba(0,0,0,.14);backdrop-filter:blur(20px) saturate(1.1);color:#edf3ef;font:inherit;min-width:0}
.fd-panel *{box-sizing:border-box}.fd-panel[hidden],.fd-panel [hidden],.fd-history [hidden]{display:none!important}.fd-panel h2{margin:0;font-size:22px;line-height:1.2;color:#f4ead1}.fd-panel a{color:inherit;text-decoration:none}.fd-panel a:hover{color:#f0d48b}.fd-panel button,.fd-panel select{font:inherit;color:#e5efeb;border:1px solid var(--fd-line);border-radius:8px;background:rgba(12,34,44,.35);padding:9px 13px;cursor:pointer;transition:background .16s,border-color .16s}.fd-panel button:hover,.fd-panel select:hover{background:rgba(91,115,116,.32);border-color:#b9b791}.fd-panel button[aria-pressed=true]{background:linear-gradient(135deg,rgba(188,167,102,.25),rgba(79,105,92,.15));border-color:rgba(223,201,145,.56);color:#f5df9d}.fd-panel button:disabled{opacity:.45;cursor:default}.fd-panel :focus-visible{outline:2px solid #e7ce8e;outline-offset:3px}.fd-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.fd-heading small,.fd-footnote,.fd-card-copy>small{color:var(--fd-muted);font-size:12px;line-height:1.6}.fd-footnote{margin:9px 0}.fd-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.fd-filter-row button{font-size:13px}.fd-filter-row small{margin-left:6px;opacity:.7}.fd-empty{padding:25px;text-align:center;color:var(--fd-muted)}#fd-loadout-extras>.fd-heading{display:none}#fd-loadout-extras{padding:0;background:none;box-shadow:none;border:none;backdrop-filter:none}#fd-videos{margin-bottom:0}
.fd-video-grid,.fd-replay-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.fd-video-card,.fd-replay-card{min-width:0;overflow:hidden;border-radius:11px;border:1px solid var(--fd-line);background:rgba(9,29,38,.58);box-shadow:inset 0 1px rgba(255,255,255,.035);transition:transform .18s,border-color .18s}.fd-video-card:hover,.fd-replay-card:hover{transform:translateY(-3px);border-color:rgba(230,213,164,.55)}.fd-video-card.fd-match{border-color:rgba(207,178,107,.65)}.fd-video-picture,.fd-replay-picture{display:block!important;position:relative;aspect-ratio:16/9;background:linear-gradient(130deg,#253d49,#0b202d);overflow:hidden}.fd-video-picture>img,.fd-map{position:absolute;width:100%;height:100%;object-fit:cover}.fd-video-picture::after,.fd-replay-picture::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,rgba(4,19,27,.75));pointer-events:none}.fd-video-picture>small{position:absolute;bottom:9px;right:10px;z-index:1;background:rgba(8,18,23,.8);padding:2px 6px;border-radius:4px;color:#eee}.fd-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;border:1px solid rgba(255,239,189,.6);border-radius:50%;width:44px;height:44px;display:grid;place-items:center;padding-left:3px;color:#ffe5aa;background:rgba(10,24,32,.48);backdrop-filter:blur(8px)}.fd-match-badge{position:absolute;top:10px;left:10px;z-index:1;color:#f5e3ac;font-size:11px;background:rgba(20,31,28,.78);padding:5px 8px;border:1px solid rgba(236,213,141,.35);border-radius:6px}.fd-card-copy{padding:13px;display:flex;flex-direction:column;gap:7px}.fd-card-title{font-weight:700;font-size:15px;line-height:1.35;min-height:2.7em;overflow-wrap:anywhere}.fd-battle-link{font-size:12px!important;color:#cdbf94!important;line-height:1.5}.fd-mini-gear{display:flex;align-items:center;gap:6px;min-height:42px}.fd-item-art{position:relative;flex:0 0 52px;width:52px;height:52px;display:inline-grid;place-items:center;background:radial-gradient(ellipse,rgba(145,172,157,.1),transparent 70%)}.fd-item-art img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.fd-item-art .fd-overlay{z-index:1}.fd-mini-gear .fd-item-art{width:42px;height:42px;flex-basis:42px}.fd-no-art{color:#637c7f}.fd-more{display:block;margin:18px auto 0!important}.fd-tank{position:absolute;object-fit:contain;width:78%;height:88%;right:0;bottom:2px;filter:drop-shadow(0 8px 5px rgba(0,0,0,.55));z-index:1}.fd-replay-picture>strong{position:absolute;bottom:10px;left:12px;z-index:2;font-size:25px;color:#f8edcc;text-shadow:0 2px 6px #101e27}.fd-replay-picture>strong small{font-size:11px}.fd-result{position:absolute;top:9px;left:10px;padding:4px 7px;background:rgba(10,23,28,.7);border-radius:5px;z-index:2;font-size:11px;color:#c1d8bc}.fd-defeat{color:#dfaaa1}.fd-reasons{display:flex;gap:5px;flex-wrap:wrap;min-height:26px}.fd-reasons span{font-size:10px;padding:3px 5px;border-radius:4px;border:1px solid rgba(163,193,188,.17);color:#bcd0c8;background:rgba(155,189,173,.045)}.fd-card-metrics{display:flex;justify-content:space-between;gap:8px;color:var(--fd-muted);font-size:12px}.fd-card-metrics b{color:#e6eee8;margin-left:5px}
#fd-comparison{border:1px solid var(--fd-line);border-radius:12px;background:linear-gradient(135deg,rgba(36,60,70,.7),rgba(14,33,43,.76));backdrop-filter:blur(18px);overflow:hidden}.fd-compare-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;border:0!important;background:transparent!important;text-align:left;font-weight:700!important;padding:17px 20px!important;font-size:17px!important;color:#ead9ab!important}.fd-compare-toggle span{font-size:20px}#fd-comparison-body{padding:0 20px 20px;border-top:1px solid var(--fd-line)}.fd-comparison-pickers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.fd-comparison-pickers label{display:flex;gap:8px;align-items:center;color:#d0c28f;font-weight:700}.fd-comparison-pickers select{width:100%;min-width:0;padding:11px}.fd-comparison-pickers option{color:#e7eee9;background:#17323d}.fd-check{margin-left:auto;font-size:12px;display:flex;align-items:center;gap:5px;cursor:pointer}.fd-check input{accent-color:#d5c286}.fd-compare-status{color:#c2d7c0;font-size:12px;padding:8px 0}.fd-compare-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid var(--fd-line);padding:12px 0}.fd-compare-row>small{grid-column:1/-1;color:var(--fd-muted);font-size:11px}.fd-compare-row>div{min-width:0;padding:10px;border:1px solid transparent;border-radius:8px;background:rgba(11,29,37,.22)}.fd-compare-row.fd-different>div{border-color:rgba(216,190,121,.23);background:rgba(196,174,109,.045)}.fd-item{display:flex;align-items:center;gap:10px;min-height:52px}.fd-item strong{font-size:14px;line-height:1.4;display:block}.fd-item small{display:block;color:var(--fd-muted);font-size:11px}.fd-item-detail{font-size:12px;line-height:1.6;margin-top:8px;color:#b8cbd0}.fd-item-detail summary{cursor:pointer;color:#d4c496}.fd-effects{display:grid;gap:7px;padding:6px 0}.fd-effect{display:flex;gap:8px;justify-content:space-between;font-size:12px;color:#c2d4d4}.fd-effect b{color:#ddcfaa;white-space:nowrap}.fd-none{color:#7f969d;font-size:12px}.fd-history{--fd-muted:#b0c3c6;color:#ecf1e8;margin-top:10px;padding:0 5px;border-top:1px solid rgba(188,215,209,.2)}.fd-history>summary{padding:13px 7px;cursor:pointer;font-size:14px;color:#e2d2a8;font-weight:600;list-style:none;display:flex;justify-content:space-between}.fd-history>summary::-webkit-details-marker{display:none}.fd-history[open]>summary span{transform:rotate(180deg)}#fd-history-body{padding:0 7px 10px}.fd-history button{color:#e6eedf;background:rgba(18,40,48,.5);border:1px solid rgba(178,205,203,.2);padding:7px 11px;border-radius:7px;cursor:pointer;font:inherit}.fd-history button[aria-pressed=true]{color:#f3da94;border-color:#b4a274}.fd-history .fd-filter-row{font-size:12px;gap:9px}.fd-chart{width:100%;height:auto;max-height:240px;display:block;overflow:visible}.fd-chart path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.fd-chart line{stroke:rgba(198,221,215,.14)}.fd-chart text{fill:#acbdbe;font-size:11px}.fd-chart-key{display:flex;gap:16px;font-size:11px;margin:12px 0}.fd-chart-key i{display:inline-block;width:13px;height:3px;margin:0 5px 3px 0}.fd-history-change{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;border:1px solid rgba(205,188,139,.18);background:rgba(132,154,126,.09);border-radius:8px;padding:12px;font-size:12px}.fd-history-change strong{font-size:20px;color:#ecdcad}.fd-history-change .fd-drop{color:#a8cd91}.fd-history-change small{color:#9eb5b8;font-size:11px}.fd-history-table{max-height:140px;overflow:auto;margin-top:10px}.fd-history-table table{width:100%;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}.fd-history-table th,.fd-history-table td{text-align:right;padding:6px;border-bottom:1px solid rgba(181,207,202,.12)}.fd-history-table th:first-child{text-align:left}.fd-history-table thead{position:sticky;top:0;background:#17323f}.fd-history .fd-footnote a{color:#d2c392}
.fd-panel,.fd-history{scroll-margin-top:110px}.fd-panel{animation:fd-appear .3s ease-out}@keyframes fd-appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.fd-video-grid,.fd-replay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-heading{align-items:flex-start;flex-direction:column;gap:8px}.fd-heading h2{font-size:20px}.fd-panel{padding:16px}.fd-card-title{font-size:14px}.fd-check{margin-left:0}.fd-effect{flex-wrap:wrap}}
@media(max-width:560px){.fd-video-grid,.fd-replay-grid{grid-template-columns:1fr}.fd-panel{padding:13px;border-radius:12px}.fd-comparison-pickers{gap:8px}#fd-comparison-body{padding:0 9px 12px}.fd-compare-row{gap:7px}.fd-compare-row>div{padding:6px}.fd-item{flex-direction:column;align-items:flex-start;gap:5px}.fd-item strong{font-size:12px}.fd-chart text{font-size:14px}.fd-panel,.fd-history{scroll-margin-top:120px}.fd-filter-row button{padding:8px 10px}.fd-compare-toggle{font-size:15px!important;padding:13px!important}}
@media(prefers-reduced-motion:reduce){.fd-panel{animation:none}.fd-video-card,.fd-replay-card,.fd-panel button{transition:none}}
.fd-trend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fd-trend-grid>a{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:7px;padding:12px;border:1px solid var(--fd-line);border-radius:9px;background:rgba(20,42,47,.3)}.fd-trend-grid img{width:70px;height:46px;object-fit:contain}.fd-trend-grid strong{display:block;font-size:14px}.fd-trend-grid small{font-size:11px;color:var(--fd-muted)}.fd-trend-grid b{color:#afd19a;font-size:18px;white-space:nowrap}.fd-trend-grid>a>small{grid-column:1/-1}
@media(max-width:900px){.fd-trend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.fd-trend-grid{grid-template-columns:1fr}}
.fd-item strong,.fd-trend-grid strong{overflow-wrap:anywhere}
@media(max-width:560px){.fd-chart text{font-size:24px}}

/* Replay-page video filter: YouTube identity and one brief sweep every six seconds. */
#fd-related [data-fd-related="video"]{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:8px;overflow:hidden}
#fd-related [data-fd-related="video"][aria-pressed="false"]{border-color:rgba(255,77,102,.42);background:linear-gradient(135deg,rgba(145,38,55,.16),rgba(12,34,44,.35))}
#fd-related [data-fd-related="video"][aria-pressed="false"]:hover{border-color:rgba(255,99,119,.72);background:rgba(145,38,55,.24)}
#fd-related .fd-video-tab-icon{display:block;flex:none;position:relative;z-index:1;pointer-events:none}
#fd-related [data-fd-related="video"] .fd-related-tab-label{position:relative;z-index:1;pointer-events:none}
#fd-related [data-fd-related="video"]::after{content:"";position:absolute;top:-40%;left:-55%;width:35%;height:180%;background:linear-gradient(90deg,transparent,rgba(255,245,224,.38),transparent);transform:translateX(0) skewX(-20deg);pointer-events:none;animation:fd-video-tab-shine 6s ease-in-out infinite}
@keyframes fd-video-tab-shine{0%,12%{transform:translateX(0) skewX(-20deg)}32%,100%{transform:translateX(650%) skewX(-20deg)}}
@media(prefers-reduced-motion:reduce){#fd-related [data-fd-related="video"]::after{animation:none;content:none}}

/* Scoped history surface: a readable dark chart inside the light loadout card. */
#fd-history.fd-history{--history-ink:#edf3e9;--history-muted:#b8c9c2;--history-green:#bbdf8a;margin:15px 0 0;padding:0;background:linear-gradient(145deg,#193136,#0c1d25);border:1px solid #42605d;border-radius:12px;color:var(--history-ink);overflow:hidden}
#fd-history.fd-history>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:63px;box-sizing:border-box;padding:12px 15px;color:var(--history-ink);font-size:14px;line-height:1.4;list-style:none;cursor:pointer}
#fd-history .fd-history-title{display:flex;align-items:center;gap:10px;font-weight:700;min-width:0;color:var(--history-ink)}
#fd-history .fd-history-title svg{width:22px;height:22px;flex:none;fill:none;stroke:#c2d896;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#fd-history .fd-history-toggle{display:flex;justify-content:center;align-items:center;gap:10px;flex:none;min-height:36px;padding:0 13px;border-radius:7px;background:#c3df89;border:1px solid #d1eba0;color:#1a2917;font-size:12px;font-weight:800;transition:background .18s,box-shadow .18s;white-space:nowrap}
#fd-history summary:hover .fd-history-toggle{background:#d2eca2;box-shadow:0 0 18px #c3df8929}
#fd-history .fd-history-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
#fd-history .fd-when-open{display:none}
#fd-history[open] .fd-when-open{display:inline}
#fd-history[open] .fd-when-closed{display:none}
#fd-history.fd-history[open]>summary span{transform:none}
#fd-history[open] .fd-history-toggle{background:#d2bb7430;border-color:#bca568;color:#f3dc9c}
#fd-history[open] .fd-history-toggle svg{transform:rotate(180deg)}
#fd-history :is(summary,button,a):focus-visible{outline:2px solid #c8ed8b!important;outline-offset:-3px}
#fd-history #fd-history-body{padding:4px 18px 16px;border-top:1px solid #82998242}
#fd-history .fd-filter-row{gap:10px;margin:14px 0 16px;display:flex;align-items:center;flex-wrap:wrap;color:var(--history-muted);font-size:12px}
#fd-history :is(.fd-filter-row,.fd-series) button{min-height:35px;padding:7px 12px;border:1px solid #6d8c7466;border-radius:7px;background:#142c31;color:#d5e1d8;box-shadow:none;font:inherit;font-weight:600;font-size:12px}
#fd-history :is(.fd-filter-row,.fd-series) button[aria-pressed=true]{background:#bedb87;color:#1b2a17;border-color:#d2eaa6;font-weight:800}
#fd-history :is(.fd-filter-row,.fd-series) button:hover{border-color:#c7df91}
#fd-history .fd-filter-row>b,#fd-history .fd-filter-row b{color:var(--history-ink)}
#fd-history .fd-history-change{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#08171e6e;border:1px solid #8b9d6b55;border-radius:9px;color:var(--history-muted);font-size:12px}
#fd-history .fd-history-change>span{color:var(--history-ink);font-weight:650}
#fd-history .fd-history-change>span small{display:block;margin-top:4px;color:var(--history-muted);font-weight:400}
#fd-history .fd-history-change strong{font-size:25px;line-height:1.2;color:var(--history-ink);font-variant-numeric:tabular-nums}
#fd-history .fd-history-change strong small{color:inherit;font-size:14px;font-weight:600}
#fd-history .fd-history-change>small{font-size:11px;color:var(--history-muted)}
#fd-history .fd-history-delay{padding:10px 12px;border:1px solid #b09e5f55;border-radius:7px;background:#b09e5f15;color:#ead39a;font-size:12px;margin:12px 0 0;line-height:1.5}
#fd-history .fd-series{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 13px}
#fd-history .fd-chart-caption{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:3px 0 7px;font-size:12px;color:var(--history-muted)}
#fd-history .fd-chart-caption strong{color:var(--history-ink);font-size:13px}
#fd-history .fd-chart{display:block;width:100%;height:clamp(180px,20vw,270px);max-height:none;overflow:visible}
#fd-history .fd-chart path{stroke:#c3df89;stroke-width:2.3;fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
#fd-history .fd-chart circle{fill:#d6eba8;stroke:#13282e;stroke-width:1.5;vector-effect:non-scaling-stroke;cursor:help}
#fd-history .fd-chart circle:focus{outline:none;fill:#fff2cb;stroke:#fff2cb;stroke-width:3}
#fd-history .fd-chart line{stroke:#a8c5b82b;stroke-width:1}
#fd-history .fd-chart text{fill:#bdcdc5;font-size:12px;font-variant-numeric:tabular-nums}
#fd-history .fd-history-table{max-height:280px;margin-top:9px;overflow:auto;border:1px solid #637e6a6b;border-radius:8px;background:#0b1e25}
#fd-history .fd-history-table table{width:100%;margin:0;border-collapse:collapse;font-size:12px;color:var(--history-ink)!important;font-variant-numeric:tabular-nums}
#fd-history .fd-history-table thead{position:sticky;top:0;background:#213d40;color:#f0f4e9;z-index:1}
#fd-history .fd-history-table :is(td,th){padding:10px 12px;color:var(--history-ink);border-bottom:1px solid #72927e2b;text-align:right;white-space:nowrap;line-height:1.35}
#fd-history .fd-history-table thead th{font-size:11px;font-weight:700;color:#eaf0df}
#fd-history .fd-history-table tbody th{font-weight:500}
#fd-history .fd-history-table th:first-child{text-align:left}
#fd-history .fd-history-table tr:last-child :is(td,th){border-bottom:0}
#fd-history .fd-history-table tbody tr:hover{background:#bedb8710}
#fd-history .fd-drop,#fd-history .fd-history-table .fd-drop{color:var(--history-green)!important}
#fd-history .fd-rise,#fd-history .fd-history-table .fd-rise{color:#f0b6a1!important}
#fd-history .fd-daily-note,#fd-history .fd-footnote{margin:10px 0 0;font-size:11px;line-height:1.6;color:var(--history-muted)}
#fd-history .fd-footnote a{color:#e3d49f;text-decoration:underline;text-underline-offset:3px}
#fd-history .fd-empty{color:var(--history-muted);font-size:13px;padding:17px 0}
.fd-visually-hidden{position:absolute!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important}
@media(max-width:560px){#fd-history.fd-history>summary{gap:10px;padding:11px;min-height:65px}#fd-history .fd-history-title{font-size:12px;gap:6px}#fd-history .fd-history-title svg{width:17px;height:17px}#fd-history .fd-history-toggle{font-size:11px;gap:5px;padding:0 9px;min-height:37px}#fd-history .fd-history-toggle svg{width:15px;height:15px}#fd-history #fd-history-body{padding:2px 10px 13px}#fd-history .fd-history-change{padding:12px;flex-wrap:wrap;gap:9px}#fd-history .fd-history-change>small{flex-basis:100%}#fd-history .fd-history-change strong{font-size:23px}#fd-history .fd-chart text{font-size:26px}#fd-history .fd-history-table :is(td,th){padding:9px 7px;font-size:11px}#fd-history .fd-history-table thead th{font-size:10px}#fd-history .fd-series{gap:6px}#fd-history .fd-series button{padding:7px 9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){#fd-history .fd-history-toggle,#fd-history .fd-history-toggle svg{transition:none}}

#fd-history .fd-history-title{overflow-wrap:anywhere}
@media(max-width:560px){#fd-history .fd-chart text{font-size:16px}#fd-history .fd-history-table table{table-layout:fixed}#fd-history .fd-history-table thead th{white-space:normal;overflow-wrap:anywhere}#fd-history .fd-history-table th:first-child{width:30%}}
