.time-attack-demo-page {
  min-height: 100vh;
}

body.time-attack-demo-page > .platform-footer {
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

.time-attack-demo-page .results-shell {
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
}

.demo-live-status {
  color: #2fe87e !important;
}

.demo-live-status i {
  display: inline-block;
  width: .72em;
  height: .72em;
  margin-right: .35em;
  border-radius: 50%;
  background: #2fe87e;
  box-shadow: 0 0 18px rgba(47, 232, 126, .85);
  animation: demo-live-pulse 1.2s ease-in-out infinite;
}

.demo-superpole-card {
  display: block !important;
  position: relative;
  overflow: hidden;
}

.demo-superpole-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(38, 215, 255, .09), transparent 70%);
  transform: translateX(-100%);
  animation: demo-sheen 3.6s linear infinite;
}

.demo-superpole-card tbody tr {
  height: 66px;
}

.demo-superpole-card td {
  font-size: clamp(20px, 2.2vw, 42px) !important;
  font-weight: 950;
}

.demo-superpole-card .running-clock {
  color: #ffdf35;
  font-size: clamp(30px, 4vw, 70px) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
  text-shadow: 0 0 22px rgba(255, 223, 53, .24);
}

.demo-waiting {
  height: 82px;
  color: rgba(255,255,255,.55) !important;
  text-align: center !important;
  font-size: clamp(17px, 1.4vw, 25px) !important;
}

.demo-progress {
  display: grid;
  gap: 7px;
  min-width: min(360px, 38vw);
  color: #26d7ff;
  font-weight: 900;
}

.demo-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.demo-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26d7ff, #ffdf35);
  transition: width .12s linear;
}

.time-attack-demo-page .results-card tbody tr.demo-finish-flash td {
  animation: demo-result-flash .46s ease-in-out 6;
}

.demo-superpole-card tbody tr.demo-finish-flash td {
  animation: demo-result-flash .46s ease-in-out 6;
}

.time-attack-demo-page .results-card tbody tr.demo-pending td {
  color: rgba(255,255,255,.58);
}

.time-attack-demo-page .results-card tbody tr.demo-first td {
  box-shadow: inset 4px 0 0 #ffdf35;
}

.demo-gap { color: #f3a7ff; }

.time-attack-demo-page .live-info-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr) 150px;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  margin-top: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(5,18,42,.72);
}

.time-attack-demo-page .stream-race-message,
.time-attack-demo-page .stream-best-time {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.time-attack-demo-page .stream-race-message span,
.time-attack-demo-page .stream-best-time span {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 900;
}

.time-attack-demo-page .stream-race-message strong,
.time-attack-demo-page .stream-best-time strong {
  margin-left: 6px;
}

.time-attack-demo-page .stream-best-time strong {
  color: #f3a7ff;
}

.time-attack-demo-page .stream-info-logo {
  display: block;
  width: 138px;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
  justify-self: end;
}

.time-attack-demo-page .results-card {
  flex: 1 1 auto;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.time-attack-demo-page .results-card > .table-scroll {
  flex: 1 1 auto;
  height: 100%;
}

.demo-ranking-table {
  width: 100% !important;
  min-width: 100% !important;
  height: 100%;
  table-layout: fixed !important;
}

.demo-ranking-table th:nth-child(1) { width: 8%; }
.demo-ranking-table th:nth-child(2) { width: 9%; }
.demo-ranking-table th:nth-child(3) { width: 34%; }
.demo-ranking-table th:nth-child(4) { width: 17%; }
.demo-ranking-table th:nth-child(5) { width: 17%; }
.demo-ranking-table th:nth-child(6) { width: 15%; }

.demo-ranking-table tbody tr {
  height: 10%;
}

@keyframes demo-result-flash {
  0%, 100% { background: var(--panel, #081c3f); color: inherit; }
  50% { background: #ffdf35; color: #061631; box-shadow: inset 0 0 35px rgba(255,255,255,.65); }
}

@keyframes demo-live-pulse {
  50% { opacity: .35; transform: scale(.74); }
}

@keyframes demo-sheen {
  to { transform: translateX(100%); }
}

@media (max-width: 760px) {
  .demo-progress { min-width: 100%; }
  .demo-superpole-card tbody tr { height: 66px; }
  .time-attack-demo-page .live-info-bar {
    grid-template-columns: minmax(0, 1fr) 86px;
  }
  .time-attack-demo-page .stream-best-time { grid-column: 1; grid-row: 2; }
  .time-attack-demo-page .stream-info-logo { grid-column: 2; grid-row: 1 / span 2; }
  .time-attack-demo-page .results-card th:nth-child(4),
  .time-attack-demo-page .results-card td:nth-child(4),
  .time-attack-demo-page .results-card th:nth-child(6),
  .time-attack-demo-page .results-card td:nth-child(6) { display: none; }
}
