/* Slide feedback 2026-11-27. Components retain the NextPitch theme. */
#dialog:not(.card-flip-dialog):not(.pack-opening-dialog){inset:0;margin:auto;transform:none}
.skill-center-back .reverse-scouting.skill-field-only{display:block!important;min-height:0;height:auto;padding:7px}
.skill-field-only .back-board{width:100%;min-width:0}
.skill-center-back .skill-field-only .back-map{width:100%;height:auto;aspect-ratio:1.48;max-height:none}
.skill-back-ratings .is-preview b{color:var(--tc-accent-text,#eac17e)}
.skill-reference-bank .skill-bank-tile{grid-template-columns:52px minmax(0,1fr);gap:10px}
.skill-reference-bank .skill-bank-tile .piece-grip{width:52px;min-width:52px}
.reference-block{grid-template-columns:54px minmax(0,1fr);gap:10px;box-sizing:border-box}
.reference-block .piece-grip{width:54px;min-width:54px;max-width:100%;overflow:hidden}
.reference-block>span:last-child{min-width:0;overflow-wrap:anywhere}
.reference-block .skill-shape{grid-template-columns:repeat(var(--cols),12px);grid-template-rows:repeat(var(--rows),12px)}
.skill-fusion-pair>div{grid-auto-rows:148px;min-height:158px;align-items:stretch}
.skill-fusion-pair .reference-block,.skill-fusion-empty{height:148px;min-height:148px;max-height:148px;box-sizing:border-box}
.skill-fusion-pair .reference-block{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:6px;gap:5px}
.skill-fusion-pair .reference-block .piece-grip{width:54px;height:52px;min-height:52px;flex:none}
.skill-fusion-pair .reference-block>span:last-child{width:100%;line-height:1.4}
.skill-fusion-pair .reference-block strong{font-size:11px}
.skill-fusion-pair h3,.skill-fusion-reference .reference-panel>h2 small,.skill-reference-layout .reference-panel>h2 small{color:#edf5fa}
.reference-block em{color:var(--tc-muted,var(--sub));text-shadow:none;font-style:normal}
.reference-block strong{text-shadow:none}
.study-info>.study-destination-card{width:auto;margin:8px;border-color:var(--tc-line)}
.study-info .study-destination-art{aspect-ratio:16/9}
.study-info .study-destination-card h2{font:17px/1.4 Ntreev;padding:8px 10px;margin:0;background:var(--tc-raised);color:var(--tc-text)}
.study-info .study-terms{display:grid;grid-template-columns:65px minmax(0,1fr);padding:10px;gap:8px}
.study-info .study-terms dd{margin:0}
@media(max-width:690px){.skill-center-back .skill-field-only .back-map{max-height:none}.skill-fusion-pair .reference-block small{font-size:10px}.skill-fusion-pair>div{padding:4px}}

/* Card sorting/filtering shares the existing season-style control row. */
.pbm-fusion .fusion-find{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.pbm-fusion .fusion-find .filters{flex:1;display:grid;grid-template-columns:minmax(140px,1fr) repeat(3,minmax(95px,auto));align-items:center;gap:6px;min-width:0}
.pbm-fusion .fusion-find :is(input,select,button){margin:0;min-height:32px;height:32px;box-sizing:border-box;min-width:0}
#page .pbm-fusion .fusion-stock{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#page .pbm-fusion .fusion-album{flex:1 1 0;height:auto;min-height:0;max-height:none;box-sizing:border-box;padding:6px 6px 14px;scroll-padding-block:6px 14px;overflow-y:auto}
#dialog.card-filter-dialog .dialog-body{overflow:auto;min-height:0}
#dialog.card-filter-dialog .filter-choices{gap:6px}
#dialog.card-filter-dialog .filter-choices label{margin:0;min-height:30px;padding:6px 7px;gap:5px;line-height:1.2;box-sizing:border-box}
.card-record-table:has(table[aria-label="팀 순위"]){overflow-x:auto;scrollbar-width:thin;touch-action:pan-x pan-y}
.card-record-table table[aria-label="팀 순위"]{min-width:800px;table-layout:fixed}
.card-record-table table[aria-label="팀 순위"] thead th:first-child{width:36px}
.card-record-table table[aria-label="팀 순위"] thead th:nth-child(2){width:170px;text-align:left}
.card-record-table table[aria-label="팀 순위"] :is(th,td){white-space:nowrap}
.card-record-table table[aria-label="팀 순위"] tbody th{max-width:240px;overflow:hidden;text-overflow:ellipsis}

@media(min-width:851px){
 .card-lineup-frame .lineup-reserve-dock .reserve-grid:has(.reserve-pick){height:calc(var(--roster-card-width) * 3 + 14px);max-height:calc(var(--roster-card-width) * 3 + 14px)}
 .card-lineup-frame .lineup-reserve-dock .reserve-tools{display:flex;align-items:center;gap:8px;padding:6px;flex-wrap:wrap}
 .card-lineup-frame .lineup-reserve-dock .reserve-tabs{flex:1 1 auto;align-items:center}
 .card-lineup-frame .lineup-reserve-dock .reserve-tools label{display:flex;align-items:center;gap:4px;flex:0 1 156px;margin:0}
 .card-lineup-frame .lineup-reserve-dock .reserve-tools :is(input,select){position:static;height:28px;min-height:28px;margin:0;box-sizing:border-box}
 .card-lineup-frame .lineup-reserve-dock .reserve-tools input{width:140px;min-width:0}
 .card-lineup-frame .lineup-reserve-dock .reserve-tools select{width:118px}
}
@media(max-width:690px){
 #page .pbm-fusion .fusion-find{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #page .pbm-fusion .fusion-find .filters{display:contents}
 #page .pbm-fusion .fusion-find .filters>input{grid-column:1/-1;width:100%}
 #page .pbm-fusion .fusion-find :is(select,button){width:100%}
 #page .pbm-fusion .fusion-album{flex:0 1 auto;max-height:50dvh;padding-bottom:14px}
}

#card-assistant-dialogue[data-blocking=true]::before{content:"";position:fixed;inset:0;background:#0008;backdrop-filter:blur(5px);z-index:-1;pointer-events:auto}
/* Both clubs share the same grid rows: labels, names, score, outcome. */
.match-scoreboard>header{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);grid-template-rows:auto auto 78px 25px;gap:6px 14px;padding:16px 18px;background:linear-gradient(125deg,var(--soft),var(--surface));border:1px solid var(--stroke)}
.match-scoreboard .match-club{display:contents;text-align:center}
.match-scoreboard .home>*{grid-column:1}.match-scoreboard .away>*{grid-column:3}
.match-scoreboard .match-club small{grid-row:1;text-align:center;color:var(--sub);font-size:11px;letter-spacing:1px;line-height:1.4}
.match-scoreboard .match-club strong{grid-row:2;align-self:start;min-width:0;min-height:0;text-align:center;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.match-scoreboard .match-club>b{grid-row:3;align-self:center;text-align:center;font:700 68px/1 Ntreev,system-ui;font-variant-numeric:tabular-nums;color:var(--text)}
.match-scoreboard .match-versus{grid-column:2;grid-row:3;align-self:center;justify-self:center;color:var(--sub);font:700 13px/1 Ntreev,system-ui;letter-spacing:1px}
.match-scoreboard .score-stamp{grid-row:4;align-self:center;justify-self:center;min-height:0;min-width:64px;padding:3px 9px;border:1px solid currentColor;border-radius:3px;font:700 14px/1 Ntreev,system-ui;text-align:center;transform-origin:center;color:var(--text);background:color-mix(in srgb,currentColor 7%,transparent);text-shadow:none}
.match-scoreboard .match-club[data-outcome=win]>b,.match-scoreboard .match-club[data-outcome=win]>.score-stamp{color:#f2ce81}
.match-scoreboard .match-club[data-outcome=loss]>b,.match-scoreboard .match-club[data-outcome=loss]>.score-stamp{color:#a8c9e9}
.light .match-scoreboard .match-club[data-outcome=win]>b,.light .match-scoreboard .match-club[data-outcome=win]>.score-stamp{color:#8b5810}
.light .match-scoreboard .match-club[data-outcome=loss]>b,.light .match-scoreboard .match-club[data-outcome=loss]>.score-stamp{color:#306796}
@media(max-width:600px){.match-scoreboard>header{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);grid-template-rows:auto auto 64px 24px;gap:5px 8px;padding:12px 10px}.match-scoreboard .match-club strong{font-size:13px}.match-scoreboard .match-club>b{font-size:56px}.match-scoreboard .score-stamp{font-size:12px;min-width:54px}.match-scoreboard .match-versus{font-size:11px}.match-scoreboard .match-decisions>div{grid-template-columns:95px minmax(0,1fr);gap:8px}.match-scoreboard .match-decisions dt{overflow-wrap:anywhere}}
.match-scoreboard .score-cell-revealed{display:inline-block;min-width:1ch}
.match-scoreboard[data-revealing=true] :is([data-score-details],.match-detail-tabs){pointer-events:none!important}
.match-scoreboard.reveal-finished .score-stamp{animation:result-stamp .38s cubic-bezier(.2,.8,.3,1) both}
/* Labels stay anchored while only result values dissolve in. */
.match-scoreboard .match-line-score td{min-width:27px}
.match-scoreboard .score-cell-revealed[data-score-step]{animation:result-digit .18s ease-out both}
.match-result-overview .unseen{color:var(--sub)}
@keyframes result-stamp{from{opacity:0;transform:scale(2) rotate(-9deg)}to{opacity:1;transform:scale(1) rotate(-8deg)}}

@keyframes result-digit{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.match-scoreboard *{animation:none!important}}

/* Reserve filters reuse the fusion filter dialog and existing roster cards. */
.card-lineup-frame .reserve-query-tools{display:flex;align-items:center;gap:6px;min-width:0}
.card-lineup-frame .reserve-query-tools>label{margin:0;min-width:0}
.card-lineup-frame .reserve-query-tools>.reserve-filter-button{white-space:nowrap;height:28px;min-height:28px;margin:0}
@media(max-width:850px){
 .card-lineup-frame .lineup-reserve-dock{display:flex;flex-direction:column;max-height:52dvh;min-height:0}
 .card-lineup-frame .lineup-reserve-dock>.sheet-caption{flex:none}
 .card-lineup-frame #reserve-dock-content:not([hidden]){display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .card-lineup-frame #reserve-dock-content>.reserve-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;flex:none;padding:6px}
 .card-lineup-frame #reserve-dock-content .reserve-tabs{min-width:0;gap:3px}
 .card-lineup-frame #reserve-dock-content .reserve-query-tools{display:grid;grid-template-columns:minmax(0,1fr) 104px 70px;gap:6px;align-items:center;width:100%}
 .card-lineup-frame #reserve-dock-content .reserve-query-tools>label{display:flex;align-items:center;gap:4px;margin:0;height:32px;min-width:0}
 .card-lineup-frame #reserve-dock-content .reserve-query-tools :is(input,select,button){position:static;margin:0;height:32px;min-height:32px;width:100%;min-width:0;box-sizing:border-box;font-size:11px}
 .card-lineup-frame #reserve-dock-content .reserve-grid{grid-template-columns:repeat(5,minmax(0,1fr));justify-content:stretch;gap:3px;padding:4px 5px 9px;height:clamp(144px,26dvh,232px);max-height:none;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;align-content:start;touch-action:pan-y;overscroll-behavior-y:contain}
 .card-lineup-frame #reserve-dock-content .reserve-grid>.reserve-pick{width:min(100%,102px);justify-self:center;min-height:0;padding:0;border:0;touch-action:pan-y}
 .card-lineup-frame #reserve-dock-content .reserve-grid .mini-card{width:100%;margin:0;max-width:none}
 .card-lineup-frame #reserve-dock-content .reserve-grip{width:18px;height:22px;font-size:12px}
 .card-lineup-frame #reserve-dock-content .reserve-empty{grid-column:1/-1;min-height:72px;flex-wrap:wrap}
}

/* No win/loss cue until the final score has actually been revealed. */
.match-scoreboard[data-revealing=true] .score-stamp{visibility:hidden!important;animation:none!important}
.match-scoreboard[data-revealing=true] .match-club>b{color:var(--text)!important}

/* Season calendar row spacing, adapted to the existing result-table DOM on mobile. */
.match-line-score caption{text-align:left;padding:6px 8px;background:var(--soft);font:12px/1.4 Ntreev,system-ui;color:var(--sub)}
.match-line-score table+table{margin-top:6px}
@media(max-width:600px){
 #dialog .match-line-score{overflow:visible;max-height:none}
 #dialog .match-line-score table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
 #dialog .match-line-score th,#dialog .match-line-score td{min-width:0!important;padding:7px 0!important;text-align:center;white-space:nowrap;font:11px/1.35 Ntreev,system-ui}
 #dialog .match-line-score th:first-child{width:82px;max-width:82px;padding:7px 4px!important;white-space:normal;overflow-wrap:anywhere;font-size:10px}
 #dialog .match-result-scroll{max-width:100%;overflow-x:hidden;padding:1px}
 #dialog .match-result-scroll table,#dialog .match-result-scroll tbody{display:block;width:100%;min-width:0}
 #dialog .match-result-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #dialog .match-result-scroll tbody{display:grid;gap:7px}
 #dialog .match-result-scroll tbody tr{display:grid;grid-template-columns:48px minmax(0,1fr) 90px;gap:5px 7px;padding:9px 7px;border:1px solid var(--stroke);border-radius:4px;background:var(--surface);align-items:center}
 #dialog .match-result-scroll tbody tr.selected{background:var(--soft);border-color:var(--sub)}
 #dialog .match-result-scroll tbody td{display:block;min-width:0;padding:0;border:0;font:12px/1.4 Ntreev,system-ui;white-space:normal;overflow-wrap:anywhere;text-align:left}
 #dialog .match-result-scroll tbody td:nth-child(1){grid-column:1;grid-row:1/4;align-self:center}
 #dialog .match-result-scroll tbody td:nth-child(2){grid-column:2;grid-row:1;font-weight:700}
 #dialog .match-result-scroll tbody td:nth-child(3){grid-column:3;grid-row:1;text-align:center;color:var(--sub)}
 #dialog .match-result-scroll tbody td:nth-child(4){grid-column:2;grid-row:2}
 #dialog .match-result-scroll tbody td:nth-child(5){grid-column:3;grid-row:2;text-align:center}
 #dialog .match-result-scroll tbody td:nth-child(6){grid-column:2;grid-row:3;font-size:10px;color:var(--sub)}
 #dialog .match-result-scroll tbody td:nth-child(7){grid-column:3;grid-row:3;text-align:center;font-size:10px;color:var(--sub)}
 #dialog .match-result-scroll tbody td:nth-child(6)::before{content:'획득 PT ';}
 #dialog .match-result-scroll tbody td:nth-child(7)::before{content:'상대 전적 ';}
 #dialog .match-result-scroll td button{box-sizing:border-box;max-width:100%;min-height:32px;padding:5px 6px;font:12px/1.3 Ntreev,system-ui;white-space:normal}
}
@media(max-width:350px){#dialog .match-line-score th:first-child{width:64px;max-width:64px}#dialog .match-result-scroll tbody tr{grid-template-columns:42px minmax(0,1fr) 83px;gap:5px;padding-inline:5px}}

/* Keep the season result table and control sizes while values are pending. */
.match-scoreboard .score-detail-slot{position:relative;display:block;min-width:0}
.match-scoreboard .score-detail-text{display:block;opacity:1;transition:opacity .34s ease}
.match-scoreboard .score-skeleton{position:absolute;left:0;top:50%;transform:translateY(-50%);width:min(78%,9em);height:.8em;min-height:8px;border-radius:4px;pointer-events:none;opacity:0;transition:opacity .34s ease;background:linear-gradient(100deg,color-mix(in srgb,var(--stroke) 75%,var(--soft)) 25%,color-mix(in srgb,var(--text) 16%,var(--soft)) 45%,color-mix(in srgb,var(--stroke) 75%,var(--soft)) 65%);background-size:240% 100%;animation:score-skeleton-shimmer 2s ease-in-out infinite}
.match-scoreboard [data-skeleton-size=wide]>.score-skeleton{width:min(88%,25em)}
.match-scoreboard [data-skeleton-size=short]>.score-skeleton{width:min(100%,6em)}
.match-scoreboard[data-revealing=true] .score-detail-text{opacity:0}
.match-scoreboard[data-revealing=true] .score-skeleton{opacity:1}
.match-detail-tabs button,#dialog[data-modal-kind=match-scoreboard] .dialog-footer button{position:relative;transition:color .34s ease,background-color .34s ease,border-color .34s ease,opacity .34s ease}
.match-detail-tabs button::after,#dialog[data-modal-kind=match-scoreboard] .dialog-footer button::after{content:"";position:absolute;left:22%;right:22%;top:50%;height:10px;transform:translateY(-50%);border-radius:4px;pointer-events:none;opacity:0;transition:opacity .34s ease;background:linear-gradient(100deg,color-mix(in srgb,var(--stroke) 75%,var(--soft)) 25%,color-mix(in srgb,var(--text) 16%,var(--soft)) 45%,color-mix(in srgb,var(--stroke) 75%,var(--soft)) 65%);background-size:240% 100%;animation:score-skeleton-shimmer 2s ease-in-out infinite}
#dialog:has(.match-scoreboard[data-revealing=true]) :is(.match-detail-tabs,.dialog-footer) button{color:transparent!important;background:var(--soft)!important;border-color:var(--stroke)!important;opacity:1!important;text-shadow:none!important}
#dialog:has(.match-scoreboard[data-revealing=true]) :is(.match-detail-tabs,.dialog-footer) button::after{opacity:1}
@keyframes score-skeleton-shimmer{from{background-position:130% 0}to{background-position:-130% 0}}
@media(prefers-reduced-motion:reduce){.match-scoreboard .score-detail-text,.match-scoreboard .score-skeleton,.match-detail-tabs button,.match-detail-tabs button::after,#dialog[data-modal-kind=match-scoreboard] .dialog-footer button,#dialog[data-modal-kind=match-scoreboard] .dialog-footer button::after{animation:none!important;transition:none!important}}

.match-scoreboard[data-revealing=false] .score-skeleton,#dialog[data-modal-kind=match-scoreboard]:not(:has(.match-scoreboard[data-revealing=true])) :is(.match-detail-tabs,.dialog-footer) button::after{animation-play-state:paused}

.match-scoreboard .score-skeleton,.match-detail-tabs button::after,#dialog[data-modal-kind=match-scoreboard] .dialog-footer button::after{animation-play-state:paused}
.match-scoreboard[data-revealing=true] .score-skeleton,#dialog:has(.match-scoreboard[data-revealing=true]) :is(.match-detail-tabs,.dialog-footer) button::after{animation-play-state:running}

body[data-card-motion=reduced] .match-scoreboard .score-detail-text,
body[data-card-motion=reduced] .match-scoreboard .score-skeleton,
body[data-card-motion=reduced] .match-detail-tabs button,
body[data-card-motion=reduced] .match-detail-tabs button::after,
body[data-card-motion=reduced] #dialog[data-modal-kind=match-scoreboard] .dialog-footer button,
body[data-card-motion=reduced] #dialog[data-modal-kind=match-scoreboard] .dialog-footer button::after{animation:none!important;transition:none!important}
