.sticky {



  position: static !important;



  top: auto !important;



  z-index: auto !important;



}

.page-competition {
  --results-panel-bg: #020617;
  --results-panel-border: #1f2937;
  --results-panel-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  --result-card-bg: #020617;
  --result-card-border: #262c3a;
  --result-card-shadow: none;
  --result-text: #f8fafc;
  --result-muted: #cbd5e1;
  --result-soft: #9ca3af;
  --result-accent-text: #dbeafe;
  --result-pill-bg: #111827;
  --result-pill-text: #e5e7eb;
  --result-pill-border: #374151;
  --result-control-bg: rgba(15, 23, 42, .40);
  --result-control-border: rgba(148, 163, 184, .18);
  --result-notice-bg: rgba(15,23,42,.45);
  --result-notice-text: rgba(226,232,240,.9);
  --result-image-bg: rgba(15, 23, 42, .35);
}

html[data-theme="light"] .page-competition {
  --results-panel-bg: #f8fafc;
  --results-panel-border: #a8b5c7;
  --results-panel-shadow: 0 20px 46px rgba(15, 23, 42, .18);
  --result-card-bg: #ffffff;
  --result-card-border: #9aa8bb;
  --result-card-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  --result-text: var(--fg);
  --result-muted: var(--muted);
  --result-soft: var(--muted-2);
  --result-accent-text: var(--fg);
  --result-pill-bg: #dce6f2;
  --result-pill-text: var(--fg);
  --result-pill-border: #9aa8bb;
  --result-control-bg: #ffffff;
  --result-control-border: #a8b5c7;
  --result-notice-bg: #e4edf7;
  --result-notice-text: var(--fg);
  --result-image-bg: #f8fafc;
}

html[data-theme="light"] .page-competition .result-card {
  border-width: 1.5px;
}

html[data-theme="light"] .page-competition .overall-grid .result-card.rank-1-card {
  box-shadow: inset 4px 0 0 #facc15, var(--result-card-shadow);
}

html[data-theme="light"] .page-competition .overall-grid .result-card.rank-2-card {
  box-shadow: inset 4px 0 0 #94a3b8, var(--result-card-shadow);
}

html[data-theme="light"] .page-competition .overall-grid .result-card.rank-3-card {
  box-shadow: inset 4px 0 0 #fb923c, var(--result-card-shadow);
}

html[data-theme="light"] .page-competition .round-pill,
html[data-theme="light"] .page-competition .score-pill {
  border: 1px solid #c3cfdd;
}

html[data-theme="light"] .page-competition .round-label-row .round-pill {
  background: #f8fafc;
  border-color: #a8b5c7;
  color: #334155;
}

html[data-theme="light"] .page-competition .round-value-row .round-pill {
  background: #dbe5f1;
  border-color: #c3cfdd;
  color: #0b1324;
  font-weight: 800;
}

html[data-theme="light"] .page-competition .round-value-row .round-pill.empty {
  opacity: .55;
}

html[data-theme="light"] .page-competition .round-value-row .round-pill.dropped,
html[data-theme="light"] .page-competition .score-pill.dropped {
  opacity: 1;
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

html[data-theme="light"] .page-competition .competition-control-group {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

html[data-theme="light"] .page-competition .competition-control-label,
html[data-theme="light"] .page-competition .score-label,
html[data-theme="light"] .page-competition .result-line-label,
html[data-theme="light"] .page-competition .result-wing-details .wing-label {
  color: #334155;
}

html[data-theme="light"] .page-competition .results-mode-notice {
  border-color: #a8b5c7;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}







.results-live-card {



  margin-top: .5rem;



  border-radius: 16px;



  background: var(--results-panel-bg);



  border: 1px solid var(--results-panel-border);



  box-shadow: var(--results-panel-shadow);



  padding: .9rem 1.1rem 1.1rem;



  overflow: hidden;



}







.results-grid {



  --card-min-width: 320px;



  display: grid;



  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-width)), 1fr));



  gap: 12px;



  margin-top: .25rem;



  align-items: start;



}







.overall-grid .result-card {



  border-width: 1.5px;



}







.result-card {



  background: var(--result-card-bg);



  border-radius: 14px;



  border: 1px solid var(--result-card-border);



  padding: 14px 12px 10px;



  display: grid;



  grid-template-columns: auto minmax(0, 1fr) auto;



  column-gap: 10px;



  row-gap: 6px;



  align-items: start;



  min-width: 0;



  width: 100%;



  box-sizing: border-box;



  overflow: hidden;
  color: var(--result-text);
  box-shadow: var(--result-card-shadow);



}







.rank-badge {



  width: 38px;



  height: 38px;



  border-radius: 999px;



  display: flex;



  align-items: center;



  justify-content: center;



  font-size: .95rem;



  font-weight: 700;



  color: var(--result-pill-text);



  background: var(--result-pill-bg);



  border: 2px solid var(--result-pill-border);



  margin-top: 2px;



}







.rank-1 {



  background: radial-gradient(circle at 30% 30%, #fef9c3, #facc15);



  border-color: #facc15;



  color: #111827;



}







.rank-2 {



  background: radial-gradient(circle at 30% 30%, #e5e7eb, #9ca3af);



  border-color: #9ca3af;



  color: #111827;



}







.rank-3 {



  background: radial-gradient(circle at 30% 30%, #fed7aa, #ea580c);



  border-color: #ea580c;



  color: #111827;



}







.result-main {



  grid-column: 2;



  grid-row: 1 / span 2;



  min-width: 0;



  overflow: hidden;



}







.result-name-row {



  display: flex;



  align-items: center;



  gap: 10px;



  min-width: 0;



}







.club-badge {



  flex: 0 0 auto;



  width: 30px;



  height: 30px;



  border-radius: 8px;



  display: grid;



  place-items: center;



  background: rgba(99, 102, 241, .18);



  border: 1px solid rgba(99, 102, 241, .28);



  color: #c7d2fe;



  overflow: hidden;



  font-weight: 800;



  font-size: .78rem;



  user-select: none;



}







.club-badge img {



  width: 100%;



  height: 100%;



  object-fit: cover;



  display: block;



}







.result-name {



  font-weight: 700;



  font-size: 1.08rem;



  line-height: 1.2;



  margin-bottom: 2px;



  overflow: hidden;



  text-overflow: ellipsis;



  white-space: nowrap;



  min-width: 0;



}







.result-club-line {



  margin-top: 2px;



  font-size: .92rem;



  line-height: 1.25;



  color: var(--result-muted);



  font-weight: 600;



  overflow: hidden;



  text-overflow: ellipsis;



  white-space: nowrap;



  min-width: 0;



}







.result-meta {



  display: flex;



  flex-wrap: wrap;



  gap: 8px;



  font-size: .87rem;



  opacity: .92;



  margin-top: 4px;



}







.result-meta .nation {



  text-transform: uppercase;



  font-weight: 700;



  color: var(--result-text);



}







.result-meta .team {



  border-left: 1px solid var(--result-card-border);



  padding-left: 8px;



  color: var(--result-accent-text);



  font-weight: 600;



}







.result-meta .clubtxt {



  border-left: 1px solid var(--result-card-border);



  padding-left: 8px;



  opacity: .95;



}







/* ROUNDS */



.result-rounds-wrap {



  margin-top: 8px;



  display: grid;



  grid-template-columns: repeat(6, minmax(40px, 1fr));



  gap: 5px;



  width: 100%;



  min-width: 0;



}







.round-row {



  display: contents;



}







.round-pill {



  min-width: 0;



  display: inline-flex;



  align-items: center;



  justify-content: center;



  padding: 4px 7px;



  border-radius: 999px;



  background: var(--result-pill-bg);



  color: var(--result-pill-text);



  font-size: .84rem;



  font-weight: 600;



  line-height: 1.2;



  white-space: nowrap;



  min-height: 24px;



}







.round-label-row .round-pill {



  background: transparent;



  border: 1px dashed var(--result-pill-border);



  color: var(--result-soft);



  font-size: .8rem;



  font-weight: 700;



}







.round-value-row .round-pill.empty {



  opacity: .35;



}







/* Desktop: 6 rounds per visual group */



.round-label-row .round-pill:nth-child(1),



.round-value-row .round-pill:nth-child(1) { grid-column: 1; }







.round-label-row .round-pill:nth-child(2),



.round-value-row .round-pill:nth-child(2) { grid-column: 2; }







.round-label-row .round-pill:nth-child(3),



.round-value-row .round-pill:nth-child(3) { grid-column: 3; }







.round-label-row .round-pill:nth-child(4),



.round-value-row .round-pill:nth-child(4) { grid-column: 4; }







.round-label-row .round-pill:nth-child(5),



.round-value-row .round-pill:nth-child(5) { grid-column: 5; }







.round-label-row .round-pill:nth-child(6),



.round-value-row .round-pill:nth-child(6) { grid-column: 6; }







.round-label-row .round-pill:nth-child(n+1):nth-child(-n+6) { grid-row: 1; }



.round-value-row .round-pill:nth-child(n+1):nth-child(-n+6) { grid-row: 2; }







.round-label-row .round-pill:nth-child(n+7):nth-child(-n+12) { grid-row: 3; }



.round-value-row .round-pill:nth-child(n+7):nth-child(-n+12) { grid-row: 4; }







.round-label-row .round-pill:nth-child(n+13):nth-child(-n+18) { grid-row: 5; }



.round-value-row .round-pill:nth-child(n+13):nth-child(-n+18) { grid-row: 6; }







.round-label-row .round-pill:nth-child(n+19):nth-child(-n+24) { grid-row: 7; }



.round-value-row .round-pill:nth-child(n+19):nth-child(-n+24) { grid-row: 8; }







.round-label-row .round-pill:nth-child(7),



.round-value-row .round-pill:nth-child(7),



.round-label-row .round-pill:nth-child(13),



.round-value-row .round-pill:nth-child(13),



.round-label-row .round-pill:nth-child(19),



.round-value-row .round-pill:nth-child(19) { grid-column: 1; }







.round-label-row .round-pill:nth-child(8),



.round-value-row .round-pill:nth-child(8),



.round-label-row .round-pill:nth-child(14),



.round-value-row .round-pill:nth-child(14),



.round-label-row .round-pill:nth-child(20),



.round-value-row .round-pill:nth-child(20) { grid-column: 2; }







.round-label-row .round-pill:nth-child(9),



.round-value-row .round-pill:nth-child(9),



.round-label-row .round-pill:nth-child(15),



.round-value-row .round-pill:nth-child(15),



.round-label-row .round-pill:nth-child(21),



.round-value-row .round-pill:nth-child(21) { grid-column: 3; }







.round-label-row .round-pill:nth-child(10),



.round-value-row .round-pill:nth-child(10),



.round-label-row .round-pill:nth-child(16),



.round-value-row .round-pill:nth-child(16),



.round-label-row .round-pill:nth-child(22),



.round-value-row .round-pill:nth-child(22) { grid-column: 4; }







.round-label-row .round-pill:nth-child(11),



.round-value-row .round-pill:nth-child(11),



.round-label-row .round-pill:nth-child(17),



.round-value-row .round-pill:nth-child(17),



.round-label-row .round-pill:nth-child(23),



.round-value-row .round-pill:nth-child(23) { grid-column: 5; }







.round-label-row .round-pill:nth-child(12),



.round-value-row .round-pill:nth-child(12),



.round-label-row .round-pill:nth-child(18),



.round-value-row .round-pill:nth-child(18),



.round-label-row .round-pill:nth-child(24),



.round-value-row .round-pill:nth-child(24) { grid-column: 6; }







.result-score {



  grid-column: 3;



  grid-row: 1 / span 2;



  text-align: right;



  white-space: nowrap;



  align-self: start;



  min-width: 72px;



}







.score-label {



  font-size: .8rem;



  text-transform: uppercase;



  letter-spacing: .06em;



  opacity: .75;



  font-weight: 700;



}







.score-value {



  font-size: 1.22rem;



  font-weight: 800;



  line-height: 1.2;



}







.overall-grid .result-card.rank-1-card {



  border-color: #facc15;



}







.overall-grid .result-card.rank-2-card {



  border-color: #9ca3af;



}







.overall-grid .result-card.rank-3-card {



  border-color: #ea580c;



}







#roundButtons .round-btn.active {



  background: #1d88ff;



  border-color: #1d88ff;



  color: #fff;



}







.no-data {



  font-size: 1rem;



  opacity: .8;



}







/* MOBILE */



@media (max-width: 640px) {



  .results-live-card {



    padding: .75rem;



  }







  .results-grid {



    --card-min-width: 100%;



  }







  .result-card {



    grid-template-columns: auto minmax(0, 1fr);



    grid-template-rows: auto auto auto;



    padding: 12px 10px 10px;



  }







  .result-main {



    grid-column: 2;



    grid-row: 1;



  }







  .result-score {



    grid-column: 1 / span 2;



    grid-row: 3;



    text-align: left;



    border-top: 1px solid var(--result-card-border);



    margin-top: 8px;



    padding-top: 8px;



    min-width: 0;



  }







  .result-rounds-wrap {



    grid-template-columns: repeat(5, minmax(34px, 1fr));



    gap: 5px 4px;



  }







  .round-pill {



    font-size: .72rem;



    padding: 3px 4px;



    min-height: 22px;



  }







  .round-label-row .round-pill {



    font-size: .7rem;



  }







  /* Mobile: 5 rounds per visual group */



  .round-label-row .round-pill:nth-child(1),



  .round-value-row .round-pill:nth-child(1),



  .round-label-row .round-pill:nth-child(6),



  .round-value-row .round-pill:nth-child(6),



  .round-label-row .round-pill:nth-child(11),



  .round-value-row .round-pill:nth-child(11),



  .round-label-row .round-pill:nth-child(16),



  .round-value-row .round-pill:nth-child(16),



  .round-label-row .round-pill:nth-child(21),



  .round-value-row .round-pill:nth-child(21) {



    grid-column: 1;



  }







  .round-label-row .round-pill:nth-child(2),



  .round-value-row .round-pill:nth-child(2),



  .round-label-row .round-pill:nth-child(7),



  .round-value-row .round-pill:nth-child(7),



  .round-label-row .round-pill:nth-child(12),



  .round-value-row .round-pill:nth-child(12),



  .round-label-row .round-pill:nth-child(17),



  .round-value-row .round-pill:nth-child(17),



  .round-label-row .round-pill:nth-child(22),



  .round-value-row .round-pill:nth-child(22) {



    grid-column: 2;



  }







  .round-label-row .round-pill:nth-child(3),



  .round-value-row .round-pill:nth-child(3),



  .round-label-row .round-pill:nth-child(8),



  .round-value-row .round-pill:nth-child(8),



  .round-label-row .round-pill:nth-child(13),



  .round-value-row .round-pill:nth-child(13),



  .round-label-row .round-pill:nth-child(18),



  .round-value-row .round-pill:nth-child(18),



  .round-label-row .round-pill:nth-child(23),



  .round-value-row .round-pill:nth-child(23) {



    grid-column: 3;



  }







  .round-label-row .round-pill:nth-child(4),



  .round-value-row .round-pill:nth-child(4),



  .round-label-row .round-pill:nth-child(9),



  .round-value-row .round-pill:nth-child(9),



  .round-label-row .round-pill:nth-child(14),



  .round-value-row .round-pill:nth-child(14),



  .round-label-row .round-pill:nth-child(19),



  .round-value-row .round-pill:nth-child(19),



  .round-label-row .round-pill:nth-child(24),



  .round-value-row .round-pill:nth-child(24) {



    grid-column: 4;



  }







  .round-label-row .round-pill:nth-child(5),



  .round-value-row .round-pill:nth-child(5),



  .round-label-row .round-pill:nth-child(10),



  .round-value-row .round-pill:nth-child(10),



  .round-label-row .round-pill:nth-child(15),



  .round-value-row .round-pill:nth-child(15),



  .round-label-row .round-pill:nth-child(20),



  .round-value-row .round-pill:nth-child(20),



  .round-label-row .round-pill:nth-child(25),



  .round-value-row .round-pill:nth-child(25) {



    grid-column: 5;



  }







  .round-label-row .round-pill:nth-child(n+1):nth-child(-n+5) { grid-row: 1; }



  .round-value-row .round-pill:nth-child(n+1):nth-child(-n+5) { grid-row: 2; }







  .round-label-row .round-pill:nth-child(n+6):nth-child(-n+10) { grid-row: 3; }



  .round-value-row .round-pill:nth-child(n+6):nth-child(-n+10) { grid-row: 4; }







  .round-label-row .round-pill:nth-child(n+11):nth-child(-n+15) { grid-row: 5; }



  .round-value-row .round-pill:nth-child(n+11):nth-child(-n+15) { grid-row: 6; }







  .round-label-row .round-pill:nth-child(n+16):nth-child(-n+20) { grid-row: 7; }



  .round-value-row .round-pill:nth-child(n+16):nth-child(-n+20) { grid-row: 8; }







  .round-label-row .round-pill:nth-child(n+21):nth-child(-n+25) { grid-row: 9; }



  .round-value-row .round-pill:nth-child(n+21):nth-child(-n+25) { grid-row: 10; }







  .rank-badge {



    width: 36px;



    height: 36px;



    font-size: .9rem;



  }







  .club-badge {



    width: 28px;



    height: 28px;



    font-size: .72rem;



  }







  .result-name {



    font-size: 1rem;



  }







  .result-club-line {



    font-size: .86rem;



  }







  .result-meta {



    font-size: .8rem;



    gap: 6px;



  }







  .score-value {



    font-size: 1.1rem;



  }



}







@media (max-width: 380px) {



  .result-rounds-wrap {



    grid-template-columns: repeat(4, minmax(34px, 1fr));



  }







  .round-label-row .round-pill:nth-child(1),



  .round-value-row .round-pill:nth-child(1),



  .round-label-row .round-pill:nth-child(5),



  .round-value-row .round-pill:nth-child(5),



  .round-label-row .round-pill:nth-child(9),



  .round-value-row .round-pill:nth-child(9),



  .round-label-row .round-pill:nth-child(13),



  .round-value-row .round-pill:nth-child(13),



  .round-label-row .round-pill:nth-child(17),



  .round-value-row .round-pill:nth-child(17),



  .round-label-row .round-pill:nth-child(21),



  .round-value-row .round-pill:nth-child(21) {



    grid-column: 1;



  }







  .round-label-row .round-pill:nth-child(2),



  .round-value-row .round-pill:nth-child(2),



  .round-label-row .round-pill:nth-child(6),



  .round-value-row .round-pill:nth-child(6),



  .round-label-row .round-pill:nth-child(10),



  .round-value-row .round-pill:nth-child(10),



  .round-label-row .round-pill:nth-child(14),



  .round-value-row .round-pill:nth-child(14),



  .round-label-row .round-pill:nth-child(18),



  .round-value-row .round-pill:nth-child(18),



  .round-label-row .round-pill:nth-child(22),



  .round-value-row .round-pill:nth-child(22) {



    grid-column: 2;



  }







  .round-label-row .round-pill:nth-child(3),



  .round-value-row .round-pill:nth-child(3),



  .round-label-row .round-pill:nth-child(7),



  .round-value-row .round-pill:nth-child(7),



  .round-label-row .round-pill:nth-child(11),



  .round-value-row .round-pill:nth-child(11),



  .round-label-row .round-pill:nth-child(15),



  .round-value-row .round-pill:nth-child(15),



  .round-label-row .round-pill:nth-child(19),



  .round-value-row .round-pill:nth-child(19),



  .round-label-row .round-pill:nth-child(23),



  .round-value-row .round-pill:nth-child(23) {



    grid-column: 3;



  }







  .round-label-row .round-pill:nth-child(4),



  .round-value-row .round-pill:nth-child(4),



  .round-label-row .round-pill:nth-child(8),



  .round-value-row .round-pill:nth-child(8),



  .round-label-row .round-pill:nth-child(12),



  .round-value-row .round-pill:nth-child(12),



  .round-label-row .round-pill:nth-child(16),



  .round-value-row .round-pill:nth-child(16),



  .round-label-row .round-pill:nth-child(20),



  .round-value-row .round-pill:nth-child(20),



  .round-label-row .round-pill:nth-child(24),



  .round-value-row .round-pill:nth-child(24) {



    grid-column: 4;



  }







  .round-label-row .round-pill:nth-child(n+1):nth-child(-n+4) { grid-row: 1; }



  .round-value-row .round-pill:nth-child(n+1):nth-child(-n+4) { grid-row: 2; }







  .round-label-row .round-pill:nth-child(n+5):nth-child(-n+8) { grid-row: 3; }



  .round-value-row .round-pill:nth-child(n+5):nth-child(-n+8) { grid-row: 4; }







  .round-label-row .round-pill:nth-child(n+9):nth-child(-n+12) { grid-row: 5; }



  .round-value-row .round-pill:nth-child(n+9):nth-child(-n+12) { grid-row: 6; }







  .round-label-row .round-pill:nth-child(n+13):nth-child(-n+16) { grid-row: 7; }



  .round-value-row .round-pill:nth-child(n+13):nth-child(-n+16) { grid-row: 8; }







  .round-label-row .round-pill:nth-child(n+17):nth-child(-n+20) { grid-row: 9; }



  .round-value-row .round-pill:nth-child(n+17):nth-child(-n+20) { grid-row: 10; }







  .round-label-row .round-pill:nth-child(n+21):nth-child(-n+24) { grid-row: 11; }



  .round-value-row .round-pill:nth-child(n+21):nth-child(-n+24) { grid-row: 12; }



}

/* Dropped worst result visualization */

.round-value-row .round-pill.dropped {

  position: relative;

  opacity: 0.62;

  background: rgba(248, 113, 113, 0.14);

  border: 1px solid rgba(248, 113, 113, 0.46);

  color: #fecaca;

  text-decoration: line-through;

  text-decoration-thickness: 2px;

}



.round-value-row .round-pill.dropped::after {

  content: "drop";

  position: absolute;

  top: -10px;

  right: -4px;

  padding: 1px 5px;

  border-radius: 999px;

  background: #ef4444;

  color: #fff;

  font-size: 9px;

  font-weight: 900;

  line-height: 1.1;

  text-decoration: none;

}



/* STEP 9: pilot flag and wing details */

.result-meta .nation {

  display: inline-flex;

  align-items: center;

  gap: 4px;

}



.result-meta .flag {

  width: 18px;

  height: 13px;

  display: inline-block;

  object-fit: cover;

  border-radius: 2px;

  box-shadow: 0 0 0 1px rgba(255,255,255,.22);

}



.result-meta .flag-img {

  flex: 0 0 auto;

}



.result-wing-line {

  margin-top: 3px;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  max-width: 100%;

  color: var(--result-accent-text);

  font-size: .82rem;

  font-weight: 700;

  line-height: 1.25;

  opacity: .96;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.result-wing-line span {

  flex: 0 0 auto;

}



/* Dynamic wing color SVG */

.wing-mini {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 34px;

  min-width: 34px;

  height: 20px;

  vertical-align: middle;

}



.wing-mini svg {

  width: 34px;

  height: 20px;

  display: block;

  filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));

}



.wing-mini .wing-shadow {

  fill: rgba(0,0,0,.35);

}



.result-wing-line {

  display: flex;

  align-items: center;

  gap: 8px;

}



/* STEP 9D: labeled wing manufacturer/model/color */

.result-wing-details {

  white-space: normal;

  align-items: flex-start;

  gap: 8px;

}



.result-wing-details .wing-detail-list {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 4px 8px;

  min-width: 0;

}



.result-wing-details .wing-detail {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  min-width: 0;

}



.result-wing-details .wing-label {

  color: var(--result-soft);

  font-size: .66rem;

  font-weight: 800;

  letter-spacing: .045em;

  text-transform: uppercase;

}



.result-wing-details .wing-value {

  color: var(--result-accent-text);

  font-size: .8rem;

  font-weight: 800;

  overflow: hidden;

  text-overflow: ellipsis;

}


/* Step 22: preserve full thumbnails and show disqualified section */
.comp-thumb,
.comp-thumb-medium,
.thumb-preview-sm {
  object-fit: contain !important;
  background: var(--result-image-bg);
}
.results-disqualified-box {
  margin-top: 18px;
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(127, 29, 29, .12);
  border-radius: 18px;
  padding: 16px;
}
.results-disqualified-box h3 {
  margin: 0 0 10px;
  color: #fecaca;
}
.results-disqualified-list {
  display: grid;
  gap: 8px;
}
.results-disqualified-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px 12px;
}
.results-disqualified-item span { opacity: .78; }
@media (max-width: 720px) {
  .results-disqualified-item { flex-direction: column; }
}

/* Step 23: official/live result mode */
.score-mode-switch { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.results-mode-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--result-control-border);
  background: var(--result-notice-bg);
  font-size: 13px;
  color: var(--result-notice-text);
}
.results-mode-notice.is-live { border-color: rgba(251,191,36,.35); color:#fef3c7; }
.result-card { min-height: 230px; }
.result-meta, .result-club-line { overflow-wrap:anywhere; }
.competition-card img,
.competition-thumb img,
.comp-thumb img { object-fit: contain !important; background: var(--result-image-bg); }


/* Step 24: cleaner pilot meta lines on public competition cards */
.result-club-line,
.result-team-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 4px;
  color: var(--result-muted);
  font-size: .82rem;
  line-height: 1.25;
}

.result-club-line span:last-child,
.result-team-line span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-line-label {
  flex: 0 0 auto;
  color: var(--result-soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-team-line {
  color: var(--result-accent-text);
}

/* Step 26: not-flown marker for open/live result view */
.round-pill.not-flown,
.score-pill.not-flown {
  border-color: rgba(250, 204, 21, .7) !important;
  background: rgba(250, 204, 21, .12) !important;
  color: #fde68a !important;
  font-weight: 800;
}
.venue-public-row { margin-top: .5rem; }
.venue-map-link { color: #93c5fd; font-weight: 700; text-decoration: none; }
.venue-map-link:hover { text-decoration: underline; }

/* Step 27: cleaner public competition controls layout */
.competition-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr) minmax(280px, .72fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
  margin-bottom: 12px;
}

.competition-control-group {
  min-width: 0;
  border: 1px solid var(--result-control-border);
  background: var(--result-control-bg);
  border-radius: 16px;
  padding: 12px;
}

.competition-control-label {
  margin-bottom: 8px;
  color: var(--result-soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.competition-category-tabs,
.score-mode-switch,
.competition-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.competition-category-tabs .btn,
.score-mode-switch .btn,
.competition-action-row .btn,
.auto-refresh-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auto-refresh-toggle {
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--result-control-border);
  color: var(--result-muted);
  font-size: .82rem;
  white-space: nowrap;
}

.round-total-score {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--result-card-border);
}

.round-total-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.round-total-value {
  margin-top: 2px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--fg);
}

@media (max-width: 1180px) {
  .competition-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .competition-control-group {
    padding: 10px;
    border-radius: 14px;
  }

  .competition-category-tabs .btn,
  .score-mode-switch .btn,
  .competition-action-row .btn,
  .auto-refresh-toggle {
    flex: 1 1 calc(50% - 8px);
  }
}
