.replay-page{max-width:none;margin:0 auto;padding:0 var(--space-lg)}.replay-page:has(#replay-root[data-state=loaded]) .replay-page__title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.replay-about{max-width:800px;margin:0 auto var(--space-2xl);color:var(--text-muted);line-height:1.7}.replay-about h2{font-size:var(--text-lg);color:var(--accent-gold);margin:var(--space-xl) 0 var(--space-sm)}.replay-about p,.replay-about ul{margin:0 0 var(--space-md)}.replay-about strong{color:var(--text-primary)}.replay-about a{color:var(--accent-blue)}.replay-about code{overflow-wrap:anywhere}.replay-page:has(#replay-root[data-state=loaded]) .replay-about{display:none}.rp-icon{display:inline-block;width:1em;height:1em;vertical-align:-.14em;flex-shrink:0}.rp-icon--crown{width:1.1em;height:1.1em;color:var(--accent-gold)}.replay-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2xs);min-height:max(80vh,100vh - 11rem);border:2px dashed var(--border-dim);border-radius:var(--radius-md);padding:var(--space-xl);text-align:center;margin:var(--space-md) 0 var(--space-xl);transition:border-color .15s,background .15s}.replay-drop p{margin:0}.replay-drop__body{display:grid;justify-items:center;gap:var(--space-2xs)}.replay-drop__title{font-size:var(--text-lg)}.replay-drop__or{opacity:.6;margin:var(--space-xs) 0 var(--space-sm)}.replay-drop.is-dragover{border-color:var(--accent-blue);background:var(--blue-soft)}.replay-drop-overlay{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:var(--scrim);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:none}body.is-dragging-file .replay-drop-overlay{display:flex}.replay-drop-overlay__inner{border:3px dashed var(--accent-blue);border-radius:var(--radius-md);padding:var(--space-2xl) var(--space-2xl);font-size:var(--text-xl);color:var(--text-bright);background:var(--blue-soft);text-align:center}.replay-drop__note{font-size:var(--text-sm);opacity:.7;max-width:46ch;margin:var(--space-xs) auto}.replay-file-btn{padding:var(--space-xs) var(--space-lg)}.replay-summary{display:flex;flex-direction:column;align-items:center;gap:var(--space-2xs);margin-bottom:var(--space-sm)}.replay-summary__teams{display:flex;align-items:flex-start;justify-content:center;flex-wrap:wrap;gap:var(--space-sm);max-width:100%}.replay-team-block{display:flex;flex-direction:column;align-items:center;gap:var(--space-3xs)}.replay-team-level{font-size:var(--text-sm);font-weight:600;font-variant-numeric:tabular-nums}.replay-vs{opacity:.6;font-size:var(--text-sm);align-self:center}.replay-panel{margin-top:var(--space-md);border:1px solid var(--hairline-strong);border-radius:var(--radius-md)}.replay-panel__tabs{display:flex;gap:var(--space-3xs);padding:var(--space-3xs) var(--space-3xs) 0;border-bottom:1px solid var(--hairline-strong)}.replay-panel__tab{background:none;border:1px solid transparent;border-bottom:none;border-radius:var(--radius-md) var(--radius-md) 0 0;color:inherit;cursor:pointer;font:inherit;font-size:var(--text-xs);opacity:.65;padding:var(--space-3xs) var(--space-sm)}.replay-panel__tab:hover{opacity:.9}.replay-panel__tab.is-on{opacity:1;border-color:var(--hairline-strong);background:var(--hairline)}.replay-panel__body{padding:var(--space-xs);overflow-x:auto}.panel-scroll{overflow-x:auto}.talent-table{border-collapse:collapse;font-size:var(--text-md)}.xp-chart{position:relative}.xp-chart__empty{opacity:.7;font-size:var(--text-sm);padding:var(--space-md) var(--space-3xs)}.xp-svg{width:100%;height:auto;display:block;touch-action:none}.xp-legend{display:flex;align-items:center;gap:var(--space-md);font-size:var(--text-xs);padding:0 var(--space-3xs) var(--space-2xs)}.xp-legend__item{display:flex;align-items:center;gap:var(--space-2xs)}.xp-legend__swatch{width:10px;height:10px;border-radius:var(--radius-sm)}.xp-legend__note{margin-left:auto;opacity:.6}.xp-grid{stroke:var(--hairline-strong);stroke-width:1}.xp-tick{fill:currentColor;opacity:.55;font-size:var(--text-2xs);text-anchor:middle}.xp-tick--y{text-anchor:end}.xp-band{opacity:.16}.xp-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.xp-end{font-size:var(--text-2xs);font-weight:600;text-anchor:end;paint-order:stroke;stroke:var(--bg-deep);stroke-width:3px}.xp-cursor{stroke:var(--overlay-strong);stroke-width:1;stroke-dasharray:3 3}.xp-hover-line{stroke:var(--overlay-strong);stroke-width:1}.xp-svg .is-off{display:none}.xp-dot{stroke:#0a0e1a;stroke-width:2}.xp-tip{position:absolute;top:2rem;transform:translate(-50%);pointer-events:none;background:var(--bg-panel-glass);border:1px solid var(--hairline-strong);border-radius:var(--radius-md);padding:var(--space-2xs) var(--space-xs);font-size:var(--text-2xs);white-space:nowrap;z-index:2}.xp-tip__time{font-variant-numeric:tabular-nums;opacity:.7;padding-bottom:var(--space-3xs)}.xp-tip__table{border-collapse:collapse}.xp-tip__table th{font-weight:400;text-align:left;padding-right:var(--space-xs);opacity:.75}.xp-tip__head th{font-weight:600;text-align:right;opacity:1}.xp-tip__num{text-align:right;font-variant-numeric:tabular-nums;padding-left:var(--space-xs)}.xp-tip__total th,.xp-tip__total .xp-tip__num{border-top:1px solid var(--hairline-strong);font-weight:600}.xp-tip__lead{padding-top:var(--space-3xs);opacity:.75}.score-cell{font-size:var(--text-md);font-variant-numeric:tabular-nums;white-space:nowrap;padding:var(--space-3xs) var(--space-xs);text-align:right;min-width:3.5rem}.score-table thead .score-cell{text-align:right}.score-table tbody tr:not(.team-row) td:nth-child(odd){background:var(--overlay)}.score-table tbody tr:not(.team-row):hover td{background:var(--hairline)}.score-table tbody tr:not(.team-row):hover th.hero-cell{background:var(--bg-card-hover)}.score-table .is-sorted{background:var(--hairline)}.talent-table thead .score-head{font-size:var(--text-sm);opacity:.8;cursor:pointer;-webkit-user-select:none;user-select:none}.talent-table thead .score-head:hover,.talent-table thead .score-head.is-sorted{opacity:1}.talent-table thead .score-head--name{text-align:left;padding-left:var(--space-2xs)}.score-arrow{display:inline-block;width:.8em;text-align:right;font-size:.75em}.talent-table .team-row th{padding:var(--space-xs) var(--space-2xs) var(--space-3xs);font-size:var(--text-xs);font-weight:600;text-align:left;color:var(--team-color);border-left:3px solid transparent}.talent-table thead th{box-sizing:border-box;height:26px;line-height:1;opacity:.6;font-weight:600;padding:0 var(--space-2xs);text-align:center}.talent-table thead .score-cell{padding:0 var(--space-xs)}.talent-table thead th:first-child,.talent-table .hero-cell{position:sticky;left:0;z-index:1;width:190px;min-width:190px;background:var(--bg-deep)}.talent-table tbody th{padding:var(--space-3xs) var(--space-xs) var(--space-3xs) var(--space-2xs);font-weight:400;white-space:nowrap;border-left:3px solid var(--team-color, transparent)}.hero-cell__inner{display:flex;align-items:center;gap:var(--space-xs)}.talent-table tbody tr:not(.team-row) th,.talent-table tbody tr:not(.team-row) td{box-sizing:border-box;height:40px;padding-top:0;padding-bottom:0}.talent-table tbody:first-of-type{border-bottom:1px solid var(--hairline-strong)}.talent-table td{padding:var(--space-3xs) var(--space-2xs);text-align:center}.talent-icon{width:33px;height:33px;border-radius:var(--radius-md);display:block;margin:0 auto}.talent-text{font-size:var(--text-sm);opacity:.85}.talent-hero{font-size:var(--text-md);display:block}.talent-hero-names{display:flex;flex-direction:column;line-height:1.15;text-align:left}.talent-player{font-size:var(--text-2xs);font-weight:400;opacity:.6}.talent-table .feed-portrait{width:28px;height:28px}.talent-hero-link,.talent-portrait-link{color:inherit;text-decoration:none}.talent-portrait-link{display:flex;align-items:center}.talent-hero-link{align-self:flex-start}.talent-hero-link:hover{text-decoration:underline}.talent-link{display:inline-block;vertical-align:middle;color:inherit;text-decoration:none}.talent-link:hover .talent-icon{outline:1px solid var(--blue-strong)}.talent-link:hover .talent-text{text-decoration:underline}.talent-tooltip{position:fixed;z-index:60;max-width:min(320px,calc(100vw - 16px));padding:var(--space-xs) var(--space-xs);border:1px solid var(--border-dim);border-radius:var(--radius-md);background:var(--bg-panel-glass);box-shadow:0 8px 24px var(--shadow);font-size:var(--text-xs);line-height:1.35;pointer-events:none}.talent-tooltip__head{display:flex;align-items:center;gap:var(--space-2xs)}.talent-tooltip__icon{width:28px;height:28px;border-radius:var(--radius-md)}.talent-tooltip__name{font-weight:600;font-size:var(--text-md)}.talent-tooltip__meta{margin-top:var(--space-3xs);font-size:var(--text-2xs);opacity:.6}.talent-tooltip__desc{margin-top:var(--space-2xs);opacity:.9}.replay-team{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-3xs);max-width:100%}.replay-portrait{width:clamp(30px,3.2vw,44px);aspect-ratio:1;flex:0 0 auto;padding:0;border-radius:var(--radius-md);border:2px solid var(--team-color, #888);overflow:hidden;cursor:pointer;background:var(--bg-deep)}.replay-portrait img{width:100%;height:100%;object-fit:cover;display:block}.replay-portrait.is-selected{outline:3px solid var(--text-bright)}.replay-summary__map{font-size:var(--text-sm);opacity:.8}.replay-map-pane{min-width:0}.replay-layout{display:grid;grid-template-columns:auto minmax(0,1fr) clamp(340px,26vw,560px);gap:var(--space-md);align-items:start}@media(max-width:900px){.replay-layout{grid-template-columns:1fr}.replay-canvas-box,.replay-controls{max-width:none}}.replay-canvas{width:100%;height:auto;border-radius:var(--radius-md);background:var(--bg-deep);cursor:grab;touch-action:none}.replay-canvas.is-panning{cursor:grabbing}.replay-canvas-box{position:relative;display:flex;justify-content:center;align-items:center;min-height:0}.replay-canvas-box,.replay-controls{box-sizing:border-box;max-width:calc(85vh / var(--canvas-aspect, .85));margin-inline:auto;width:100%}.replay-settings{position:absolute;right:.6rem;bottom:.6rem;z-index:3;display:grid;gap:var(--space-md);min-width:13rem;padding:var(--space-sm) var(--space-md);border:1px solid var(--border-dim);border-radius:var(--radius-md);background:var(--bg-panel-glass);box-shadow:0 8px 24px var(--shadow);font-size:var(--text-xs)}.replay-settings[hidden]{display:none}.replay-settings__legend{font-size:var(--text-2xs);letter-spacing:.08em;text-transform:uppercase;opacity:.55;margin-bottom:var(--space-xs)}.rp-switch{display:flex;padding:var(--space-3xs) 0}.rp-segmented{display:flex}.rp-segmented label{flex:1;padding:var(--space-3xs);text-align:center;color:var(--seg-color, inherit)}.rp-segmented label:has(input:checked){background:color-mix(in srgb,var(--seg-color, var(--text-muted)) 28%,transparent);color:var(--seg-color, var(--text-primary))}.replay-controls{display:flex;align-items:end;gap:var(--space-xs);margin-top:var(--space-xs);--control-h: 2.4rem}.replay-controls>:not(.replay-track){box-sizing:border-box;height:var(--control-h)}.replay-controls>button{display:flex;align-items:center;justify-content:center}.replay-controls [data-play]{width:2.4rem;padding:0;border-radius:50%;font-size:var(--text-md)}.replay-controls [data-fullscreen] .rp-icon{vertical-align:0}.replay-controls [data-fullscreen],.replay-controls [data-reset-view]{font-size:var(--text-xs)}.replay-controls [data-reset-view]{font-size:var(--text-xs);padding:var(--space-2xs) var(--space-xs)}.replay-controls input[type=range]{width:100%;display:block;height:var(--control-h);margin:0}.replay-track{flex:1;min-width:0}.replay-phases{position:relative;height:calc(var(--rows) * .85rem);margin-bottom:var(--space-3xs)}.replay-phase{position:absolute;top:calc(var(--row) * .85rem);height:.85rem;padding:0;border:0;background:linear-gradient(currentColor,currentColor) left center / 100% 2px no-repeat;color:var(--text-muted);cursor:pointer;opacity:.75}.replay-phase:before,.replay-phase:after{content:"";position:absolute;top:50%;width:7px;height:7px;margin-top:calc(-1 * var(--space-3xs));border-radius:50%;background:currentColor}.replay-phase:before{left:-3.5px}.replay-phase:after{right:-3.5px}.replay-phase.is-moment{background:none}.replay-phase__run{position:absolute;top:50%;height:3px;margin-top:-1.5px;border-radius:var(--radius-sm);background:currentColor}.replay-phase__run.is-team0{color:#5a96ff}.replay-phase__run.is-team1{color:#ff5a5a}.replay-phase.is-team0{color:#5a96ff}.replay-phase.is-team1{color:#ff5a5a}.replay-phase.is-past{opacity:.9}.replay-phase.is-now,.replay-phase:hover{opacity:1}.replay-phase.is-now:before,.replay-phase.is-now:after,.replay-phase:hover:before,.replay-phase:hover:after{box-shadow:0 0 0 2px var(--overlay-strong)}.replay-time{font-variant-numeric:tabular-nums;min-width:3.5rem;display:flex;align-items:center;justify-content:flex-end}.replay-controls select{background:transparent;color:inherit;border:1px solid var(--border-dim);border-radius:var(--radius-md);padding:var(--space-3xs) var(--space-2xs)}.replay-controls [data-settings]{padding:var(--space-3xs) var(--space-xs);line-height:1}.replay-controls [data-settings] .rp-icon{vertical-align:0}.replay-notes{margin-top:var(--space-xs);font-size:var(--text-xs)}.replay-notes>summary{cursor:pointer;opacity:.6;width:fit-content}.replay-notes>summary:hover{opacity:.85}.replay-note{font-size:var(--text-xs);opacity:.6;margin-top:var(--space-xs);max-width:70ch}.replay-feed-pane{border:1px solid var(--hairline-strong);border-radius:var(--radius-md);overflow:hidden;display:flex;flex-direction:column;max-height:82vh}.replay-feed-head{display:flex;justify-content:space-between;align-items:center;padding:var(--space-xs) var(--space-sm);border-bottom:1px solid var(--hairline-strong);font-weight:600;font-size:var(--text-sm)}.replay-feed-filters{display:flex;flex-direction:column;gap:var(--space-2xs);padding:var(--space-xs) var(--space-xs);border-bottom:1px solid var(--hairline-strong)}.feed-filter-row{display:flex;flex-wrap:wrap;gap:var(--space-3xs)}.feed-filter-row[hidden]{display:none}.feed-filter{font-size:var(--text-2xs);padding:var(--space-3xs) var(--space-xs);opacity:.55}.feed-filter.is-on{opacity:1}.feed-filter--all{opacity:.75;border-style:dashed;min-width:3rem}.feed-filter--all:hover{opacity:1}.feed-hero-grid{display:flex;gap:var(--space-xs);flex:1;min-width:0}.feed-hero-team{display:grid;grid-template-columns:repeat(var(--hero-count, 5),minmax(0,1fr));gap:var(--space-3xs);flex:1;min-width:0}.feed-hero-filter{width:100%;max-width:26px;aspect-ratio:1;justify-self:center;padding:0;border-radius:50%;border:2px solid var(--team-color, #888);background:transparent;color:inherit;font-size:var(--text-2xs);cursor:pointer;overflow:hidden;opacity:.3;filter:grayscale(1)}.feed-hero-filter.is-on{opacity:1;filter:none}.feed-hero-filter img{width:100%;height:100%;object-fit:cover;display:block}.feed-search{width:100%;font-size:var(--text-xs);padding:var(--space-3xs) var(--space-xs)}.feed-empty{padding:var(--space-xs) var(--space-sm);font-size:var(--text-xs);opacity:.55}.replay-feed{list-style:none;margin:0;padding:var(--space-3xs) 0;overflow-y:auto;flex:1}.feed-item{display:flex;align-items:center;gap:var(--space-xs);padding:var(--space-3xs) var(--space-sm);font-size:var(--text-xs);cursor:pointer;opacity:.45;border-left:3px solid transparent}.feed-item.is-past{opacity:.85}.feed-item.is-current{opacity:1;background:#4da3ff1f;border-left-color:#4da3ff}.feed-item:hover{background:var(--hairline)}.feed-time{font-variant-numeric:tabular-nums;opacity:.6;min-width:2.9rem}.feed-portrait{width:22px;height:22px;border-radius:50%;border:2px solid #888;object-fit:cover;flex-shrink:0}.feed-icon{width:20px;height:20px;border-radius:var(--radius-sm);flex-shrink:0}.feed-item.is-heroic .feed-icon{outline:1px solid gold}.feed-item.is-death{color:#ff9c9c}.feed-item.is-talent{color:#ffd97a}.feed-item.is-camp,.feed-item.is-level{opacity:.7}.feed-item.is-structure,.feed-item.is-objective{opacity:.8}#replay-root:fullscreen{box-sizing:border-box;height:100%;padding:var(--space-xs);background:var(--bg-deep);color:var(--text-primary);overflow:hidden}#replay-root:fullscreen .replay-layout{height:100%;align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(220px,320px)}#replay-root:fullscreen .replay-map-pane{display:flex;flex-direction:column;min-height:0}#replay-root:fullscreen .replay-canvas-box,#replay-root:fullscreen .replay-controls{max-width:none}#replay-root:fullscreen .replay-canvas-box{flex:1 1 auto}#replay-root:fullscreen .replay-canvas{width:auto;flex:0 0 auto}#replay-root:fullscreen .replay-summary,#replay-root:fullscreen .replay-notes,#replay-root:fullscreen .replay-panel{display:none}#replay-root:fullscreen .replay-feed-pane{max-height:none;height:100%}#replay-root:fullscreen .rp-lib{display:none}.replay-drop__status{margin-top:var(--space-md);display:grid;gap:var(--space-3xs)}.rp-lib{display:flex;flex-direction:column;gap:var(--space-2xs);width:clamp(232px,18vw,320px);max-height:82vh;border:1px solid var(--hairline-strong);border-radius:var(--radius-md);padding:var(--space-xs);background:var(--scrim-soft)}.rp-lib__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2xs);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em;opacity:.75}.rp-lib__count{margin-left:var(--space-2xs);padding:0 var(--space-2xs);border-radius:var(--radius-pill);background:var(--hairline-strong)}.rp-lib__list{display:flex;flex-direction:column;gap:var(--space-2xs);overflow-y:auto;overflow-x:hidden;min-height:0}.rp-lib-item{position:relative}.rp-lib-card{position:relative;display:block;width:100%;overflow:hidden;padding:var(--space-xs) var(--space-xs);border:1px solid var(--hairline-strong);border-radius:var(--radius-md);background:var(--scrim-soft);color:inherit;font:inherit;text-align:left;cursor:pointer}.rp-lib-card:before{content:"";position:absolute;inset:0;background-image:var(--card-bg, none);background-size:cover;background-position:center;opacity:.3}.rp-lib-card:hover:before{opacity:.45}.rp-lib-item.is-active .rp-lib-card{border-color:var(--accent-blue);box-shadow:0 0 0 1px var(--accent-blue)}.rp-lib-card[disabled]{cursor:default;opacity:.7}.rp-lib-card__body{position:relative;display:flex;flex-direction:column;gap:var(--space-3xs)}.rp-lib-card:not([disabled]) .rp-lib-card__body{padding-bottom:var(--space-md)}.rp-lib-card__title{font-size:var(--text-md);font-weight:600;line-height:1.2;text-shadow:0 1px 3px var(--shadow-strong)}.rp-lib-card__note{font-size:var(--text-2xs);opacity:.8}.rp-lib-card__note--error{color:var(--danger);opacity:1}.rp-lib-card__teams{display:flex;flex-direction:column;gap:var(--space-3xs)}.rp-lib-team{display:flex;align-items:center;gap:var(--space-3xs);padding-left:var(--space-3xs);border-left:3px solid var(--team-color)}.rp-lib-team__crown{display:inline-flex;margin-left:var(--space-3xs)}.rp-lib-hero{display:inline-flex;align-items:center;justify-content:center;width:clamp(22px,2vw,30px);height:clamp(22px,2vw,30px);border-radius:var(--radius-sm);overflow:visible;font-size:var(--text-2xs);background:var(--shadow)}.rp-lib-hero img{width:100%;height:100%;border-radius:var(--radius-sm);object-fit:cover;display:block}.rp-lib-hero:hover:after{content:attr(data-label);position:absolute;left:0;right:0;bottom:0;z-index:5;padding:var(--space-3xs) var(--space-3xs);border-radius:var(--radius-md);background:var(--bg-deep);border:1px solid var(--border-dim);color:var(--text-primary);font-size:var(--text-2xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.rp-lib-remove{position:absolute;top:2px;right:2px;display:none;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;padding:0;border:none;border-radius:var(--radius-md);background:var(--scrim);color:var(--text-primary);font-size:var(--text-2xs);cursor:pointer}.rp-lib-item:hover .rp-lib-remove,.rp-lib-remove:focus-visible{display:flex}.rp-lib-remove:hover{background:var(--danger)}.rp-lib__add{display:flex;align-items:center;justify-content:center;gap:var(--space-2xs);padding:var(--space-2xs);border:1px dashed var(--border-dim);border-radius:var(--radius-md);font-size:var(--text-xs);cursor:pointer}.rp-lib__add:hover{border-color:var(--accent-blue);background:var(--blue-soft)}@media(max-width:900px){.rp-lib{width:auto;max-height:none}.rp-lib__list{flex-direction:row;overflow-x:auto}.rp-lib-item{flex:0 0 260px}}
