:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #143957;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
}

.page-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 20px 28px;
}

.hero {
  width: 100%;
  padding: 8px 0 14px;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-label {
  margin: 0;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

h2,
p {
  margin-top: 0;
}

.hero-description {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  color: #1f5d91;
  font-size: clamp(1.232rem, 5.5vw, 1.595rem);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.collector-refresh-button {
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #8fbad9;
  border-radius: 50%;
  background: #edf6fc;
  color: #1f5d91;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.collector-refresh-button:hover:not(:disabled) {
  border-color: #4f91c3;
  background: #dceef9;
}

.collector-refresh-button:focus-visible {
  outline: 3px solid rgb(45 118 180 / 35%);
  outline-offset: 3px;
}

.collector-refresh-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.collector-refresh-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collector-refresh-button.is-loading .collector-refresh-icon {
  animation: collector-refresh-spin 900ms linear infinite;
}

.collector-refresh-status {
  margin: 6px 54px 0 0;
  color: #4f718b;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.collector-refresh-status:empty {
  display: none;
}

.collector-refresh-status.is-error {
  color: #a12626;
}

@keyframes collector-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.deadline-panel {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 17px;
  padding: 21px 20px;
  border-radius: 18px;
  background: #2d76b4;
  color: #fff;
  box-shadow: 0 12px 26px rgb(45 118 180 / 20%);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.deadline-panel .section-label {
  color: #fff;
}

.deadline-panel h2 {
  margin: 5px 0 5px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 8vw, 2.35rem);
  letter-spacing: 0.03em;
}

.deadline-caption {
  margin: 0;
  color: #fff;
  font-size: clamp(1.19rem, 5.6vw, 1.645rem);
  line-height: 1.55;
}

.deadline-items {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deadline-item-group,
.placeholder-item {
  padding: 9px 10px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 10px;
  background: rgb(255 255 255 / 10%);
}

.deadline-item-group-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deadline-item {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.deadline-item + .deadline-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 35%);
}

.deadline-item-meta {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 0.72rem;
}

/* Match-based plays use 60% of the countdown's responsive scale:
   the countdown's clamp(1.7rem, 8vw, 2.35rem) size. */
.deadline-item-group--bjdc .deadline-item > strong,
.deadline-item-group--bjdc .deadline-item > .deadline-item-meta,
.deadline-item-group--jczq .deadline-item > strong,
.deadline-item-group--jczq .deadline-item > .deadline-item-meta {
  font-size: clamp(1.02rem, 4.8vw, 1.41rem);
}

.deadline-item--traditional strong {
  display: block;
  font-size: clamp(0.55rem, 2vw, 0.82rem);
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.deadline-item--ellipsis {
  padding: 2px 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1;
}

.deadline-item-group--ellipsis {
  padding: 0;
  border: 0;
  background: transparent;
}

.deadline-item-group--ellipsis .deadline-item {
  padding: 0;
  border: 0;
}

.deadline-panel.is-urgent {
  background: #c62828;
  box-shadow: 0 14px 30px rgb(198 40 40 / 28%);
}

.deadline-panel.is-urgent .section-label {
  color: #fff;
}

.deadline-panel.is-urgent .deadline-caption,
.deadline-panel.is-urgent .deadline-item-meta {
  color: #fff;
}

.deadline-panel.is-urgent .deadline-item-group,
.deadline-panel.is-urgent .placeholder-item {
  border-color: rgb(254 202 202 / 52%);
  background: rgb(255 255 255 / 13%);
}

.deadline-panel.is-urgent .deadline-item-group--ellipsis {
  border: 0;
  background: transparent;
}

@media (max-width: 430px) {
  .page-shell {
    padding: 24px 15px;
  }

  .deadline-panel {
    grid-template-columns: 1fr;
  }

}
