/* Tryhard reuses hob/style.css wholesale but swaps the accent color so it
   reads as a distinct section of the site (Hall of Bingo = blue, Tryhard =
   purple). Load this after hob/style.css so the override wins the cascade. */
:root {
  --accent: #9b6bea;
}

/* Hardcoded in hob/style.css rather than driven by --accent, so it needs its
   own override to match Tryhard's purple theme. */
.latest-hero-badge {
  background: linear-gradient(135deg, #c9a4f5, #7d4fc7 55%, #2e1a4d);
}

/* hob/style.css only colors the active goal tab's underline with --accent,
   leaving the icon/text at the default text color - Tryhard wants the
   icon+label to go fully purple on the active tab too. */
.goal-tab-button.active {
  color: var(--accent);
}

/* Goal icon shown at the right of the Latest Record hero card. */
.latest-hero-icon {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 1.1rem;
  border-radius: 10px;
  object-fit: contain;
  image-rendering: pixelated;
}

.record-old-amount {
  color: #e05c5c;
}

.record-new-amount {
  color: #4caf6f;
  font-weight: 700;
}

/* Difficulty-weighted scoring toggle - Tryhard-only, since it reflects how hard
   it is to split attention across multiple #1s in the same bingo, a concept
   that doesn't apply to HOB. */
.leaderboard-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.leaderboard-header h2 {
  margin: 0;
}

.difficulty-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.difficulty-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.difficulty-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.difficulty-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.difficulty-toggle input:checked + .difficulty-toggle-track {
  background: var(--accent);
}

.difficulty-toggle input:checked + .difficulty-toggle-track .difficulty-toggle-thumb {
  transform: translateX(14px);
}

.difficulty-toggle input:focus-visible + .difficulty-toggle-track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.difficulty-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.difficulty-toggle.disabled {
  display: none;
}

/* Goals tab */
.goals-subheading {
  margin: 1.1rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
}

#goals-record-view .goals-subheading:first-child,
#goals-detail-view .goals-subheading:first-child {
  margin-top: 0;
}

.goal-icon-row {
  display: flex;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.2rem 0.9rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.goal-icon-row::-webkit-scrollbar {
  height: 6px;
}

.goal-icon-row::-webkit-scrollbar-track {
  background: transparent;
}

.goal-icon-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.goal-icon-row::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.goal-icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  width: 78px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.6rem 0.4rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.goal-icon-button:hover {
  border-color: var(--accent);
}

.goal-icon-button.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
}

.goal-icon-button-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.goal-icon-button-name {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

#goals-detail-title {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.goal-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.goal-detail-panel .highlight-card {
  height: 100%;
}

@media (max-width: 700px) {
  .goal-detail-columns {
    grid-template-columns: 1fr;
  }
}

.goal-contribution-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.goal-contribution-meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Recent Entries rows for bingos where nobody claimed a goal - shown instead
   of silently dropping the row, so the timeline still reflects every goal
   that ran that month. */
.mystery-avatar-sm {
  border-radius: 6px;
  font-size: 0.85rem;
}

.recent-row-mystery {
  cursor: default;
}

.recent-row-mystery .recent-name {
  color: var(--muted);
  font-style: italic;
}
