.my-hunts {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

/* My Hunts is optional UI. Keep the whole section out of sight until there is
   at least one real hunt card to show; this also prevents transient callable
   errors/loading states from surfacing technical copy to users with no hunts. */
.my-hunts:not(:has(.home-game-card)) {
  display: none;
}

.my-hunts-head,
.home-game-group-head,
.home-game-title-row,
.home-game-actions {
  display: flex;
  align-items: center;
}

.my-hunts-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.my-hunts-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.home-game-group + .home-game-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-game-group-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-game-group-head span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--track);
  color: var(--text);
  font-size: .72rem;
}

.home-game-list {
  display: grid;
  gap: 9px;
}

.home-game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 13px 13px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out), background-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.home-game-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent), var(--line) 58%);
}

.home-game-card.is-live {
  border-color: color-mix(in srgb, var(--accent), var(--line) 46%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.home-game-card.is-ended {
  opacity: .9;
}

.home-game-main { min-width: 0; }

.home-game-title-row {
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.home-game-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .96rem;
}

.home-game-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--track);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.is-live .home-game-status {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.home-game-meta,
.home-game-score {
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}

.home-game-score {
  color: var(--soft);
  font-size: .7rem;
}

.home-game-actions {
  justify-content: flex-end;
  gap: 7px;
}

.home-game-hide {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color .16s var(--ease-out), border-color .16s var(--ease-out), background-color .16s var(--ease-out), transform .16s var(--ease-out);
}

.home-game-hide:hover:not(:disabled) {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger), var(--line) 45%);
  background: color-mix(in srgb, var(--danger), transparent 92%);
}

.home-game-hide:active:not(:disabled) { transform: scale(.94); }
.home-game-hide:disabled { opacity: .45; cursor: wait; }

.home-game-empty,
.home-games-loading {
  padding: 15px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .my-hunts { padding: 14px; border-radius: 20px; }
  .home-game-card { gap: 9px; padding: 12px; }
  .home-game-actions { gap: 5px; }
  .home-game-actions .btn { padding-inline: 10px; }
  .home-game-hide { width: 32px; height: 32px; }
  .home-game-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-game-card,
  .home-game-hide { transition: none !important; }
}
