.sbBody{
  background: var(--text);
  color: var(--card);
}

.sbWrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
}

.sbCard{
  border-radius: 18px;
  border: 1px solid var(--bd);
  background: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 320px;
}

.sbTop{
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--bd);
}

.sbEvent{
  font-weight: 950;
  font-size: 34px;
  letter-spacing: .2px;
}

.sbPhase{
  font-weight: 950;
  font-size: 18px;
  color: var(--bd);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.sbMid{
  padding: 22px 18px;
  border-bottom: 1px solid var(--bd);
}

.sbAthlete{
  font-weight: 950;
  font-size: 44px;
  line-height: 1.05;
}

.sbAff{
  margin-top: 10px;
  color: var(--bd);
  font-weight: 800;
  font-size: 22px;
}

.sbBottom{
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.sbStandings{
  padding: 18px;
}

.sbStandingsHd{
  font-weight: 950;
  font-size: 26px;
  margin-bottom: 12px;
}

.sbTable{
  width: 100%;
  border-collapse: collapse;
}

.sbTable th,
.sbTable td{
  padding: 10px 8px;
  border-bottom: 1px solid var(--bd);
  font-size: 16px;
}

.sbTable th{
  text-align: left;
  color: var(--bd);
  font-weight: 950;
}

.sbTable td{
  color: var(--card);
  font-weight: 800;
}

.sbMuted{
  color: var(--bd);
  font-weight: 900;
}

.sbLeft{
  flex: 1;
  padding: 16px 18px;
  border-right: 1px solid var(--bd);
}

.sbLeftRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.sbTimer{
  font-family: var(--mono);
  font-weight: 950;
  font-size: 56px;
  line-height: 1.05;
  color: var(--card);
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 14px;
}

.sbMetaLine{
  font-weight: 950;
  font-size: 40px;
  line-height: 1.05;
  margin: 6px 0;
}

.sbMetaLabel{
  color: var(--bd);
}

.sbMetaValue{
  font-family: var(--mono);
  font-weight: 950;
  font-size: inherit;
  line-height: inherit;
}

.sbFoulStack{
  display:flex;
  gap:14px;
  align-items:flex-start;
  min-height: 64px;
}

/* Vertical height history strip (previous heights + current) */
.sbVStrip{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.sbVCol{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  min-width: 120px;
}

.sbVCol.isCurrent{
  border-width: 2px;
}

.sbVHeight{
  text-align:center;
}

.sbVHeightPrimary{
  font-family: var(--mono);
  font-weight: 950;
  font-size: 22px;
  line-height: 1.05;
}

.sbJO{
  color: var(--danger);
  font-weight: 950;
  margin-left: 6px;
}

.sbVHeightSecondary{
  margin-top: 4px;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  color: var(--bd);
}

.sbVAttRow{
  display:flex;
  gap: 8px;
}

.sbVAtt{
  font-family: var(--mono);
  font-weight: 950;
  font-size: 26px;
  line-height: 1;
  min-width: 18px;
  text-align:center;
}

.sbVAtt.isO{ color: #22c55e; }
.sbVAtt.isX{ color: #ef4444; }
.sbVAtt.isP{ color: var(--card); }

.sbFoulItem{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-family: var(--mono);
  font-weight: 950;
}

.sbFoulNum{
  font-size: 28px;
  line-height: 1;
}

.sbFoulX{
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
  color: #ef4444;
}

.sbRight{
  flex: 1;
  padding: 16px 18px;
  text-align: right;
}

.sbPrimary{
  font-family: var(--mono);
  font-weight: 950;
  font-size: 56px;
  line-height: 1.05;
}

.sbPrimary.sbFoul{
  color: #ef4444;
}

.sbSecondary{
  margin-top: 10px;
  font-family: var(--mono);
  color: #fbbf24;
  font-weight: 900;
  font-size: 28px;
}

.sbSymbol{
  margin-top: 10px;
  font-family: var(--mono);
  font-weight: 950;
  font-size: 84px;
  line-height: 1;
  color: var(--card);
  min-height: 84px;
}
.sbSymbol.isO{ color: #22c55e; }
.sbSymbol.isX{ color: #ef4444; }
.sbSymbol.isP{ color: var(--card); }

@media(max-width:820px){
  .sbEvent{font-size:26px;}
  .sbAthlete{font-size:32px;}
  .sbMetaLine{font-size:28px;}
  .sbPrimary{font-size:40px;}
  .sbSecondary{font-size:22px;}
  .sbSymbol{font-size:64px; min-height:64px;}

  .sbVCol{ min-width: 96px; padding: 8px 8px; }
  .sbVHeightPrimary{ font-size: 18px; }
  .sbVHeightSecondary{ font-size: 12px; }
  .sbVAtt{ font-size: 22px; }
}
