/* Shared recorded DC Top 5 card: identical Overview/Calendar layout.
   Kept separate from general scoreboard styles to avoid affecting Archives,
   Challenge details, rank pages or account dialogs. */
body[data-theme="glass"] #content .v5-results:has(.v273-dc-score-pair){
 min-width:0;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 align-content:start;
 gap:15px!important;
 padding:14px 15px 10px!important;
 min-width:0;
 width:100%;
 box-sizing:border-box;
}
body[data-theme="glass"] #content .v5-results .v273-dc-top-five{
 min-width:0;
 width:100%;
}
body[data-theme="glass"] #content .v5-results .v273-dc-top-heading{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:9px!important;
 min-height:27px;
 margin:0 0 9px!important;
 font-size:14px!important;
 font-weight:790!important;
 line-height:1.25!important;
 letter-spacing:-.15px;
 color:#e1f0ff;
 white-space:nowrap;
 text-align:center;
}
body[data-theme="glass"] #content .v5-results .v273-dc-top-heading>img{
 display:block!important;
 width:23px!important;height:23px!important;
 min-width:23px!important;max-width:23px!important;
 object-fit:contain;
 image-rendering:pixelated;
 flex:0 0 23px;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .scoreboard{
 padding:0!important;
 min-width:0;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-head,
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row{
 display:grid!important;
 grid-template-columns:42px minmax(0,1fr) minmax(67px,78px)!important;
 gap:8px!important;
 align-items:center!important;
 box-sizing:border-box;
 width:100%;
 min-width:0;
 padding-left:9px!important;
 padding-right:9px!important;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-head{
 min-height:27px;
 margin:0 0 5px!important;
 padding-top:4px!important;
 padding-bottom:4px!important;
 font-size:9px!important;
 font-weight:780;
 letter-spacing:.07em;
 color:#8faac9;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row{
 min-height:43px!important;
 padding-top:4px!important;
 padding-bottom:4px!important;
 margin-bottom:5px!important;
 border:1px solid rgba(152,194,245,.13);
 border-radius:10px;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row.first{
 border-color:rgba(210,179,92,.48);
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-head>span:first-child{
 text-align:center!important;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-head>span:nth-child(2){
 text-align:left!important;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-head>span:last-child{
 text-align:right!important;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row>.rank-holder{
 display:flex!important;
 justify-content:center!important;
 align-items:center!important;
 margin:0;
 width:42px!important;
 min-width:0;
 height:34px;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row>.rank-holder img{
 display:block!important;
 width:32px!important;height:32px!important;
 object-fit:contain;
 image-rendering:pixelated;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row>.player{
 display:block;
 justify-self:stretch;
 text-align:left!important;
 min-width:0;
 width:100%;
 margin:0;
 padding:0!important;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
 font-size:12.5px!important;
 font-weight:760!important;
 line-height:1.3;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row>.num{
 display:block;
 text-align:right!important;
 justify-self:end;
 min-width:0;
 white-space:nowrap;
 font-size:12.5px!important;
 font-weight:780;
 font-variant-numeric:tabular-nums;
}
body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row>.v47-admin-row-actions{
 grid-column:1/-1;
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-end;
 gap:5px;
 min-width:0;
}
body[data-theme="glass"] #content .v5-results .v273-dc-top-five .v5-no-scores{
 margin:10px 5px;
 text-align:center;
}
body[data-theme="glass"] #content .v273-calendar-score-pane{
 min-width:0;
}
body[data-theme="glass"] #content .v273-calendar-score-pane>.v5-results{
 width:100%;
 height:auto;
 min-height:0;
}
body[data-theme="glass"] #content .v273-calendar-record-stack{
 display:grid;
 gap:15px;
 min-width:0;
}
body[data-theme="glass"] #content .v273-calendar-record-stack>.v5-results{
 min-height:0;
}
body[data-theme="glass"] #content .v273-calendar-score-pane .v5-results .v3-latest-heading{
 align-items:center;
 min-width:0;
}
body[data-theme="glass"] #content .v273-calendar-score-pane .v5-results .v3-latest-heading>div:last-child{
 min-width:0;
}
body[data-theme="glass"] #content .v273-calendar-score-pane .v5-results .v3-latest-heading h2,
body[data-theme="glass"] #content .v273-calendar-score-pane .v5-results .v3-latest-heading p{
 overflow-wrap:normal;
}
@media(max-width:580px){
 body[data-theme="glass"] #content .v5-results .v273-dc-score-pair{
  padding:12px 9px 8px!important;
  gap:13px!important;
 }
 body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-head,
 body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row{
  grid-template-columns:37px minmax(0,1fr) minmax(58px,70px)!important;
  gap:5px!important;
  padding-left:6px!important;
  padding-right:6px!important;
 }
 body[data-theme="glass"] #content .v5-results .v273-dc-score-pair .score-row>.rank-holder{
  width:37px!important;
 }
 body[data-theme="glass"] #content .v5-results .v273-dc-top-heading{
  font-size:13px!important;
 }
}

/* History and Calendar full-scoreboard modal: continuous glass for every result row. */
body[data-theme="glass"] #modal-root .dialog.v50-fullscore-dialog{
  /* Only this outer element scrolls; its viewport edge must not look like
     the end of the scoreboard's glass panel midway through the Guild results. */
  box-sizing:border-box!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  max-height:min(92vh,1080px)!important;
  scrollbar-color:rgba(148,185,227,.42) transparent;
}
body[data-theme="glass"] #modal-root .dialog.v50-fullscore-dialog > .v50-fullscore-glass-surface{
  /* The surface is content-sized: its backdrop, stroke and bottom corners
     extend past BOTH Personal and Guild Top 5 and any further event sections. */
  display:flow-root;
  position:relative;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:auto;
  padding:25px;
  border:1px solid rgba(181,215,255,.33);
  border-radius:21px;
  background:linear-gradient(150deg,rgba(45,75,118,.92),rgba(13,30,56,.94));
  box-shadow:inset 0 1px rgba(255,255,255,.22),0 30px 76px rgba(2,8,24,.35);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
}
body[data-theme="glass"] #modal-root .dialog.v50-fullscore-dialog .v50-fullscore-body,
body[data-theme="glass"] #modal-root .dialog.v50-fullscore-dialog .v50-fullscore-event{
  height:auto;
  min-height:0;
  max-height:none;
}
@media(max-width:580px){
  body[data-theme="glass"] #modal-root .dialog.v50-fullscore-dialog > .v50-fullscore-glass-surface{
    padding:14px 11px;
    border-radius:16px;
  }
}
@media(prefers-reduced-transparency:reduce){
  body[data-theme="glass"] #modal-root .dialog.v50-fullscore-dialog > .v50-fullscore-glass-surface{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background:linear-gradient(150deg,#213b5d,#142b4c);
  }
}
