/* Gachi stylesheet: challenge-cards.css. Share buttons, submit note, challenge list cards and state tokens. */
/* Extracted verbatim from index.html. Load order is significant; see styles/README.md. */

#share-copy-button.is-copied,
#share-native-button.is-copied {
  border: 1px solid var(--border);
  background: rgba(13, 39, 47, 0.46);
  color: var(--text-main);
  box-shadow: inset 0 2px 8px rgba(4, 14, 18, 0.24), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(4, 14, 18, 0.12);
}

#share-copy-button.is-copied:hover,
#share-copy-button.is-copied:focus-visible,
#share-native-button.is-copied:hover,
#share-native-button.is-copied:focus-visible {
  transform: translateY(3px);
  box-shadow: inset 0 2px 9px rgba(4, 14, 18, 0.26), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 3px 8px rgba(4, 14, 18, 0.14);
  background: rgba(13, 39, 47, 0.46);
  color: var(--text-main);
}

.share-floater-actions > * {
  flex: 1 1 0;
  max-width: 220px;
}

.dashboard-actions {
  margin-top: auto;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px 10px;
  padding-top: 14px;
}

.dashboard-actions > .dashboard-note {
  flex: 0 0 100%;
  min-height: 1.2em;
}

.form-actions.detail-actions {
  left: 50%;
  right: auto;
  bottom: calc(var(--viewport-bottom-offset) + max(12px, calc(var(--safe-bottom) + var(--native-bottom-reserve) + 10px)));
  width: max-content;
  max-width: min(calc(100% - var(--safe-left) - var(--safe-right) - 32px), 320px);
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 35;
  --bottom-bar-underfill: 0px;
}

.detail-actions::before {
  display: none;
}

.detail-screen.is-native-chat-entry .detail-actions {
  display: none;
}

.detail-actions > button {
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding-block: 0;
  white-space: nowrap;
  pointer-events: auto;
}

.detail-actions.is-single-action {
  grid-template-columns: minmax(0, 1fr);
}

#dashboard-submit-note[hidden] {
  display: block !important;
  visibility: hidden;
}

.dashboard-note.is-saving {
  color: rgba(111, 224, 192, 0.92);
}

.dashboard-note.is-error {
  color: #ffb4a7;
}

.dashboard-note.is-tip {
  font-style: italic;
}

.dashboard-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.2;
}

#dashboard-submit-note {
  box-sizing: border-box;
  height: var(--topshelf-generic-copy-reserve);
  overflow: hidden;
  padding: 2px 0 0;
  text-overflow: ellipsis;
  transform: none;
  line-height: calc(var(--topshelf-generic-copy-reserve) - 4px);
  white-space: nowrap;
}

#dashboard-submit-note.is-saving:not(.is-complete-note) {
  color: rgba(123, 238, 207, 0.9);
  text-shadow:
    0 1px 3px rgba(4, 18, 22, 0.42),
    0 0 9px rgba(111, 224, 192, 0.18);
}

#dashboard-submit-note.is-error {
  color: #ffb4a7;
  text-shadow:
    0 1px 3px rgba(4, 18, 22, 0.42),
    0 0 8px rgba(255, 180, 167, 0.12);
}

#dashboard-submit-note.is-complete-copy,
body.is-dashboard-day-complete .dashboard-screen[data-screen="dashboard"] #dashboard-submit-note.is-complete-note {
  color: rgba(236, 255, 248, 0.96);
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(4, 18, 22, 0.38);
}

.challenge-list {
  --challenge-card-hover-press: 1px;
  --challenge-card-active-press: 2px;
  --challenge-card-padding-y: 12px;
  --challenge-card-padding-x: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 7px;
}

.challenge-list-divider {
  width: min(82%, 320px);
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 6px auto 2px;
  color: rgba(190, 216, 212, 0.62);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-align: center;
}

.challenge-list-divider::before,
.challenge-list-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 224, 192, 0.28));
}

.challenge-list-divider::after {
  background: linear-gradient(90deg, rgba(111, 224, 192, 0.28), transparent);
}

.challenge-link {
  --challenge-state-border: var(--border);
  --challenge-state-glow: transparent;
  --challenge-state-inset: transparent;
  --challenge-state-inset-hover: transparent;
  --challenge-state-inset-edge: transparent;
  --challenge-state-inset-edge-hover: transparent;
  position: relative;
  display: block;
  border: 1px solid var(--challenge-state-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 18%, transparent 38%),
    linear-gradient(180deg, rgba(111, 224, 192, 0.16), rgba(111, 224, 192, 0.03) 40%),
    linear-gradient(180deg, rgba(49, 109, 126, 0.97), rgba(36, 88, 103, 0.99));
  color: var(--text-main);
  text-decoration: none;
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.03),
    inset 0 12px 20px rgba(4, 14, 18, 0.1),
    inset 0 -14px 22px rgba(7, 22, 28, 0.12),
    inset 0 -2px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(4, 14, 18, 0.18);
  padding: 14px 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.challenge-link[data-score-card-state="leading"] {
  --challenge-state-border: rgba(111, 224, 192, 0.3);
  --challenge-state-glow: rgba(111, 224, 192, 0.075);
  --challenge-state-inset: rgba(111, 224, 192, 0.055);
  --challenge-state-inset-hover: rgba(111, 224, 192, 0.085);
  --challenge-state-inset-edge: rgba(111, 224, 192, 0.12);
  --challenge-state-inset-edge-hover: rgba(111, 224, 192, 0.18);
}

.challenge-link[data-score-card-state="trailing"] {
  --challenge-state-border: rgba(255, 103, 103, 0.5);
  --challenge-state-glow: rgba(255, 103, 103, 0.14);
  --challenge-state-inset: rgba(255, 103, 103, 0.12);
  --challenge-state-inset-hover: rgba(255, 103, 103, 0.16);
  --challenge-state-inset-edge: rgba(255, 103, 103, 0.26);
  --challenge-state-inset-edge-hover: rgba(255, 103, 103, 0.34);
}

.challenge-link[data-score-card-state="tied"] {
  --challenge-state-border: rgba(237, 247, 245, 0.24);
  --challenge-state-glow: rgba(237, 247, 245, 0.055);
  --challenge-state-inset: rgba(237, 247, 245, 0.045);
  --challenge-state-inset-hover: rgba(237, 247, 245, 0.07);
  --challenge-state-inset-edge: rgba(237, 247, 245, 0.1);
  --challenge-state-inset-edge-hover: rgba(237, 247, 245, 0.16);
}

.challenge-link[data-card-tone="positive"] {
  --challenge-state-border: rgba(111, 224, 192, 0.34);
  --challenge-state-glow: rgba(111, 224, 192, 0.09);
  --challenge-state-inset: rgba(111, 224, 192, 0.065);
  --challenge-state-inset-hover: rgba(111, 224, 192, 0.095);
  --challenge-state-inset-edge: rgba(111, 224, 192, 0.14);
  --challenge-state-inset-edge-hover: rgba(111, 224, 192, 0.2);
}

.challenge-link[data-card-tone="critical"] {
  --challenge-state-border: rgba(249, 210, 99, 0.34);
  --challenge-state-glow: rgba(249, 210, 99, 0.085);
  --challenge-state-inset: rgba(249, 210, 99, 0.055);
  --challenge-state-inset-hover: rgba(249, 210, 99, 0.08);
  --challenge-state-inset-edge: rgba(249, 210, 99, 0.13);
  --challenge-state-inset-edge-hover: rgba(249, 210, 99, 0.19);
}

.challenge-link[data-card-tone="urgent"] {
  --challenge-state-border: rgba(255, 103, 103, 0.62);
  --challenge-state-glow: rgba(255, 103, 103, 0.18);
  --challenge-state-inset: rgba(255, 103, 103, 0.14);
  --challenge-state-inset-hover: rgba(255, 103, 103, 0.19);
  --challenge-state-inset-edge: rgba(255, 103, 103, 0.32);
  --challenge-state-inset-edge-hover: rgba(255, 103, 103, 0.42);
}

.challenge-link[data-card-tone="failed"] {
  --challenge-state-border: rgba(255, 141, 141, 0.34);
  --challenge-state-glow: rgba(255, 103, 103, 0.07);
  --challenge-state-inset: rgba(255, 103, 103, 0.055);
  --challenge-state-inset-hover: rgba(255, 103, 103, 0.08);
  --challenge-state-inset-edge: rgba(255, 141, 141, 0.16);
  --challenge-state-inset-edge-hover: rgba(255, 141, 141, 0.22);
}

.challenge-link[data-challenge-mode="together"] {
  --challenge-state-border: rgba(112, 196, 255, 0.32);
  --challenge-state-glow: rgba(89, 183, 255, 0.075);
  --challenge-state-inset: rgba(89, 183, 255, 0.045);
  --challenge-state-inset-hover: rgba(89, 183, 255, 0.075);
  --challenge-state-inset-edge: rgba(132, 211, 255, 0.12);
  --challenge-state-inset-edge-hover: rgba(132, 211, 255, 0.18);
}

.challenge-link[data-official-challenge] {
  --challenge-state-border: rgba(255, 211, 122, 0.38);
  --challenge-state-glow: rgba(255, 196, 82, 0.11);
  --challenge-state-inset: rgba(255, 196, 82, 0.055);
  --challenge-state-inset-hover: rgba(255, 211, 122, 0.085);
  --challenge-state-inset-edge: rgba(255, 226, 157, 0.16);
  --challenge-state-inset-edge-hover: rgba(255, 235, 184, 0.24);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 18%, transparent 38%),
    linear-gradient(180deg, rgba(49, 109, 126, 0.97), rgba(36, 88, 103, 0.99));
  box-shadow:
    inset 0 0 10px 3px rgba(255, 205, 103, 0.24),
    inset 0 0 0 1px rgba(255, 238, 195, 0.2),
    inset 0 1px 0 rgba(255, 248, 226, 0.3),
    0 0 0 1px rgba(255, 196, 82, 0.08),
    0 8px 24px rgba(255, 180, 55, 0.14);
}

.challenge-link.is-new-challenge-shine {
  overflow: hidden;
}

.challenge-link.is-new-challenge-shine::before {
  content: "";
  position: absolute;
  inset: -80% -35%;
  z-index: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 247, 219, 0.18) 49%, transparent 56%);
  transform: translateX(-34%);
  opacity: 0;
  pointer-events: none;
}

.challenge-link.is-new-challenge-shine::before {
  animation: new-challenge-card-shine 1500ms cubic-bezier(0.16, 0.9, 0.28, 1) both;
}

.challenge-link.is-new-challenge-shine .challenge-link-shell {
  position: relative;
  z-index: 1;
}

@keyframes new-challenge-card-shine {
  0% { transform: translateX(-42%); opacity: 0; }
  20% { opacity: 0.95; }
  64% { opacity: 0.72; }
  100% { transform: translateX(42%); opacity: 0; }
}

.challenge-link[data-official-challenge].is-muted::before {
  content: none;
  animation: none;
}

.challenge-link.is-closable {
  padding-right: 16px;
}

.challenge-link:hover,
.challenge-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--challenge-state-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 18%, transparent 38%),
    linear-gradient(180deg, rgba(111, 224, 192, 0.2), rgba(111, 224, 192, 0.05) 40%),
    linear-gradient(180deg, rgba(54, 117, 133, 0.98), rgba(40, 96, 111, 0.99));
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.04),
    inset 0 12px 20px rgba(4, 14, 18, 0.1),
    inset 0 -14px 22px rgba(7, 22, 28, 0.1),
    inset 0 -2px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 2px var(--challenge-state-glow),
    0 14px 26px rgba(4, 14, 18, 0.2);
}

.challenge-link.is-muted {
  border-color: rgba(163, 227, 211, 0.12);
  background:
    linear-gradient(180deg, rgba(111, 224, 192, 0.05), rgba(111, 224, 192, 0.01) 34%),
    linear-gradient(180deg, rgba(31, 76, 91, 0.88), rgba(16, 43, 52, 0.94));
  box-shadow:
    var(--button-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 10px 18px rgba(4, 14, 18, 0.1),
    inset 0 -6px 12px rgba(5, 18, 23, 0.06),
    inset 0 -2px 0 rgba(255, 255, 255, 0.035),
    0 6px 12px rgba(4, 14, 18, 0.08);
}

.challenge-link.is-muted:hover,
.challenge-link.is-muted:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(163, 227, 211, 0.2);
  box-shadow:
    var(--button-shadow-hover),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 10px 18px rgba(4, 14, 18, 0.11),
    inset 0 -8px 16px rgba(5, 18, 23, 0.1),
    inset 0 -2px 0 rgba(255, 255, 255, 0.04),
    0 8px 16px rgba(4, 14, 18, 0.12);
}

.challenge-list .challenge-link {
  padding: var(--challenge-card-padding-y) var(--challenge-card-padding-x);
  background:
    linear-gradient(180deg, rgba(111, 224, 192, 0.12), rgba(111, 224, 192, 0.03) 42%),
    var(--surface-strong);
  box-shadow:
    var(--button-shadow),
    0 0 0 1px var(--challenge-state-glow),
    inset 0 10px 18px rgba(4, 14, 18, 0.12),
    inset 0 -2px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 2px var(--challenge-state-inset-edge),
    inset 0 0 18px var(--challenge-state-inset),
    0 5px 3px rgba(4, 18, 22, 0.25),
    0 9px 9px rgba(4, 18, 22, 0.16);
}

.challenge-list .challenge-link[data-official-challenge] {
  background:
    linear-gradient(90deg, rgba(255, 205, 103, 0.12), transparent 10px, transparent calc(100% - 10px), rgba(255, 205, 103, 0.12)),
    linear-gradient(180deg, rgba(255, 225, 160, 0.12), transparent 10px, transparent calc(100% - 10px), rgba(255, 185, 55, 0.09)),
    linear-gradient(180deg, rgba(111, 224, 192, 0.12), rgba(111, 224, 192, 0.03) 42%),
    var(--surface-strong);
}

.challenge-list .challenge-link:hover,
.challenge-list .challenge-link:focus-visible {
  transform: translateY(var(--challenge-card-hover-press));
  border-color: var(--challenge-state-border);
  background:
    linear-gradient(180deg, rgba(111, 224, 192, 0.16), rgba(111, 224, 192, 0.04) 42%),
    var(--surface-strong);
  box-shadow:
    var(--button-shadow-hover),
    0 0 0 2px var(--challenge-state-glow),
    inset 0 10px 18px rgba(4, 14, 18, 0.12),
    inset 0 -2px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 2px var(--challenge-state-inset-edge-hover),
    inset 0 0 20px var(--challenge-state-inset-hover),
    0 6px 4px rgba(4, 18, 22, 0.27),
    0 11px 10px rgba(4, 18, 22, 0.18);
}

.challenge-list .challenge-link[data-official-challenge]:hover,
.challenge-list .challenge-link[data-official-challenge]:focus-visible {
  background:
    linear-gradient(90deg, rgba(255, 211, 116, 0.16), transparent 11px, transparent calc(100% - 11px), rgba(255, 211, 116, 0.16)),
    linear-gradient(180deg, rgba(255, 232, 180, 0.16), transparent 11px, transparent calc(100% - 11px), rgba(255, 192, 68, 0.12)),
    linear-gradient(180deg, rgba(111, 224, 192, 0.16), rgba(111, 224, 192, 0.04) 42%),
    var(--surface-strong);
}

.challenge-list .challenge-link.is-muted {
  border-color: rgba(111, 224, 192, 0.24);
  background: transparent;
  box-shadow: 0 0 12px rgba(111, 224, 192, 0.04);
}

.challenge-list .challenge-link.is-muted:hover,
.challenge-list .challenge-link.is-muted:focus-visible {
  border-color: rgba(111, 224, 192, 0.42);
  background: rgba(111, 224, 192, 0.07);
  box-shadow: 0 0 12px rgba(111, 224, 192, 0.08);
}

.challenge-list .challenge-link.is-muted:active {
  box-shadow: 0 0 12px rgba(111, 224, 192, 0.06);
}

.challenge-list .challenge-link:active {
  transform: translateY(var(--challenge-card-active-press));
  box-shadow:
    var(--button-shadow-pressed),
    inset 0 10px 18px rgba(4, 14, 18, 0.12),
    inset 0 -2px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 2px var(--challenge-state-inset-edge),
    inset 0 0 14px var(--challenge-state-inset),
    0 3px 2px rgba(4, 18, 22, 0.22),
    0 6px 6px rgba(4, 18, 22, 0.13);
}

.challenge-list .challenge-link.is-opening,
.challenge-list .challenge-link.is-pressing {
  transform: translateY(3px) scale(0.992);
  border-color: var(--challenge-state-border);
  box-shadow:
    var(--button-shadow-pressed),
    inset 0 8px 14px rgba(4, 14, 18, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 0 2px var(--challenge-state-inset-edge),
    inset 0 0 12px var(--challenge-state-inset),
    0 2px 2px rgba(4, 18, 22, 0.2);
}

.challenge-list .challenge-link.is-opening {
  pointer-events: none;
}

.challenge-list .challenge-link.is-muted.is-opening,
.challenge-list .challenge-link.is-muted.is-pressing {
  background: rgba(111, 224, 192, 0.05);
  box-shadow: 0 0 10px rgba(111, 224, 192, 0.06);
}

.challenge-link.is-muted .challenge-title,
.challenge-link.is-muted .challenge-score-value {
  opacity: 0.66;
}

.challenge-link.is-muted .challenge-status-copy,
.challenge-link.is-muted .challenge-title-meta,
.challenge-link.is-muted .challenge-status-badge {
  opacity: 0.54;
}

.challenge-link.is-muted .challenge-score-label,
.challenge-link.is-muted .challenge-dismiss-button {
  opacity: 0.62;
}

.challenge-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.challenge-link-body {
  display: grid;
  gap: 8px;
}

.challenge-link-shell {
  display: grid;
  gap: 8px;
}

.challenge-link-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.challenge-top-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.challenge-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.challenge-title {
  margin: 0;
  min-width: 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-unread-badge {
  display: block;
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: 0 0 auto;
  fill: var(--surface-solid);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(4, 14, 18, 0.5));
  transform: none;
  transform-origin: center;
  animation: challengeUnreadVibe 4s ease-in-out infinite;
}

@keyframes challengeUnreadVibe {
  0%, 25%, 100% {
    transform: translate(0, 0) rotate(0);
  }
  2.5% {
    transform: translate(-1px, 1px) rotate(-4deg);
  }
  5% {
    transform: translate(1px, -1px) rotate(4deg);
  }
  7.5% {
    transform: translate(-1px, -1px) rotate(-3deg);
  }
  10% {
    transform: translate(1px, 1px) rotate(3deg);
  }
  12.5% {
    transform: translate(-1px, 0) rotate(-4deg);
  }
  15% {
    transform: translate(1px, -1px) rotate(4deg);
  }
  17.5% {
    transform: translate(-1px, 1px) rotate(-3deg);
  }
  20% {
    transform: translate(1px, 0) rotate(3deg);
  }
  22.5% {
    transform: translate(-1px, -1px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-link.is-new-challenge-shine::before,
  .challenge-unread-badge,
  .dashboard-bottom-nav-button.has-unread-chat:not(.is-active) .dashboard-bottom-nav-unread {
    animation: none;
  }
}

.challenge-title-meta {
  color: var(--text-soft);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.25;
}

.challenge-meta-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  min-width: 0;
}

.challenge-meta-separator {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
}

.challenge-status-copy {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
}

.challenge-meta-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.challenge-status-copy .is-alert {
  color: #ff7b7b;
}

.challenge-status-copy .is-critical {
  color: #f9d263;
  font-weight: 700;
}

.challenge-status-copy .is-urgent {
  color: #ff7b7b;
  font-weight: 700;
}

.sudden-death-alert {
  color: #ff7b7b;
  font-weight: 800;
}

.challenge-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  pointer-events: none;
}

.challenge-score-label,
.challenge-score-value {
  margin: 0;
}

.challenge-score-label {
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.challenge-score-value {
  color: var(--text-main);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.challenge-score[data-score-state="leading"] .challenge-score-value {
  color: var(--accent);
}

.challenge-score[data-score-state="trailing"] .challenge-score-value {
  color: #ff8d8d;
}

.challenge-score[data-score-state="tied"] .challenge-score-value {
  color: var(--text-main);
}

.challenge-dismiss-button {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 247, 245, 0.7);
  cursor: pointer;
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  transition: background-color 160ms ease, transform 160ms ease;
}

.challenge-dismiss-button span {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

.challenge-dismiss-button:hover,
.challenge-dismiss-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.04);
}

.challenge-link.is-muted .challenge-dismiss-button {
  color: rgba(237, 247, 245, 0.46);
  background: rgba(255, 255, 255, 0.05);
}

.challenge-status-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.challenge-status-badge[data-status-badge="active"] {
  background: rgba(111, 224, 192, 0.16);
  color: var(--accent);
}

.challenge-status-badge[data-status-badge="official"] {
  border: 1px solid rgba(115, 197, 255, 0.26);
  background: rgba(92, 166, 219, 0.16);
  color: #c9edff;
  box-shadow: inset 0 1px 0 rgba(230, 247, 255, 0.08);
}

.challenge-status-badge[data-status-badge="starts-soon"] {
  border: 1px solid rgba(115, 197, 255, 0.26);
  background: rgba(92, 166, 219, 0.16);
  color: #b9e6ff;
  box-shadow: inset 0 1px 0 rgba(230, 247, 255, 0.08);
}

.challenge-status-badge[data-status-badge="negotiate"],
.challenge-status-badge[data-status-badge="negotiation-draft"],
.challenge-status-badge[data-status-badge="negotiation-review-required"] {
  border: 1px solid rgba(242, 182, 109, 0.28);
  background: rgba(242, 182, 109, 0.14);
  color: #ffd7a6;
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.08);
}

.challenge-status-badge[data-status-badge="negotiation-waiting"] {
  border: 1px solid rgba(115, 197, 255, 0.22);
  background: rgba(92, 166, 219, 0.12);
  color: #b9e6ff;
  box-shadow: inset 0 1px 0 rgba(230, 247, 255, 0.07);
}

.challenge-status-badge[data-status-badge="negotiation-ongoing"] {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  color: #d7e3ef;
  box-shadow: inset 0 1px 0 rgba(236, 244, 255, 0.06);
}

.challenge-status-badge[data-status-badge="sudden-death"] {
  padding: 0 10px;
  border: 1px solid rgba(255, 125, 109, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 123, 95, 0.24), rgba(176, 57, 40, 0.22));
  color: #ffe0d6;
  letter-spacing: 0.03em;
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 214, 0.12),
    0 0 0 1px rgba(255, 106, 74, 0.08),
    0 0 18px rgba(255, 96, 74, 0.12);
}

.challenge-status-badge[data-status-badge="pending"] {
  border: 1px solid rgba(242, 182, 109, 0.28);
  background: rgba(242, 182, 109, 0.14);
  color: #ffd7a6;
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.08);
}

.challenge-status-badge[data-status-badge="response-required"] {
  border: 1px solid rgba(255, 210, 98, 0.34);
  background: rgba(255, 210, 98, 0.16);
  color: #ffe4a3;
  box-shadow: inset 0 1px 0 rgba(255, 246, 210, 0.1);
}

.challenge-status-badge[data-status-badge="declined"] {
  background: rgba(255, 255, 255, 0.06);
  color: #d8b9b9;
}

.challenge-status-badge[data-status-badge="completed"] {
  background: rgba(111, 224, 192, 0.14);
  color: #9ae8d0;
}

.challenge-status-badge[data-status-badge="cancelled"] {
  background: rgba(255, 255, 255, 0.06);
  color: #d8b9b9;
}

