.activity-page { display: grid; align-content: start; gap: 14px; }
.activity-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 120px;
  padding: 18px 22px;
  border: 1px solid #61bde83b;
  border-radius: 12px;
  background: #081d2d;
}
.activity-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--activity-art) center 46% / cover no-repeat;
}
.activity-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #03111ef7, #03111e86 65%, #03111e59);
}
.activity-hero--gathers { --activity-art: url("../images/maps/de_ancient.jpg"); }
.activity-hero--matches { --activity-art: url("../images/maps/de_mirage.jpg"); }
.activity-hero h1 { margin: 3px 0 0; font-size: clamp(26px, 4vw, 42px); }
.activity-hero .simple-kicker { margin: 0; }
.activity-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid #65b9de26;
  border-radius: 12px;
  background: #081624;
}
.activity-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; font-size: 16px; }
.activity-panel h2 small { color: #9eb7c9; font-size: 11px; }
.activity-empty { margin: 0; padding: 16px 8px; color: #a8bed0; text-align: center; font-size: 13px; }
.activity-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto minmax(44px, auto);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #102338;
  color: #e6f4ff;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.activity-row + .activity-row { margin-top: 5px; }
.activity-row:is(:hover, :focus-visible) { background: #183451; border-color: #61bde87d; }
.activity-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 5px; }
.activity-info { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.activity-info small { display: block; margin-top: 2px; }
.activity-info small, .activity-format, .activity-value small { color: #acc2d4; font-size: 11px; }
.activity-format { margin-inline-start: 4px; }
.activity-status {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 20px;
  color: #8ddcff;
  font-size: 11px;
}
.activity-status--cancelled { color: #ffacb3; }
.activity-status--live, .activity-status--finished { color: #8be7bd; }
.activity-value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-progress {
  appearance: none;
  display: block;
  width: min(100%, 180px);
  height: 3px;
  margin-top: 5px;
  border: 0;
  border-radius: 10px;
  background: #2c4560;
  color: #4acaff;
}
.activity-progress::-webkit-progress-bar { background: #2c4560; border-radius: 10px; }
.activity-progress::-webkit-progress-value { background: #4acaff; border-radius: 10px; }
.activity-progress::-moz-progress-bar { background: #4acaff; border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .activity-hero::before { animation: activity-art-in 1.4s ease-out both; }
  .activity-panel { animation: activity-panel-in .28s ease-out both; }
  @keyframes activity-art-in { from { transform: scale(1.05); } to { transform: scale(1); } }
  @keyframes activity-panel-in { from { opacity: .5; transform: translateY(5px); } }
}
@media (max-width: 520px) {
  .activity-hero { min-height: 104px; padding: 14px; }
  .activity-panel { padding: 8px; }
  .activity-row { grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 6px; padding: 5px; }
  .activity-thumb { width: 38px; height: 34px; }
  .activity-status { font-size: 10px; padding-inline: 5px; }
}

.activity-result { position: relative; isolation: isolate; overflow: hidden; }
.activity-result-art, .activity-result::before {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(68%, 620px);
  height: 100%;
  pointer-events: none;
}
.activity-result-art { z-index: -2; object-fit: cover; object-position: center 55%; }
.activity-result::before {
  content: "";
  z-index: -1;
  width: 100%;
  background: linear-gradient(90deg, #102338 31%, #102338b8 65%, #091c2bbd);
}
.activity-result:is(:hover, :focus-visible)::before {
  background: linear-gradient(90deg, #183451 31%, #183451b8 65%, #112d45ae);
}
.result-winner { color: #9ee6ff; text-decoration: underline; text-decoration-color: #49d6ff75; text-underline-offset: 3px; }
.activity-row-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.activity-row-actions + .activity-row-actions { margin-top: 5px; }
.activity-delete { padding: 5px 8px; border: 1px solid #de8a92; border-radius: 5px; background: #301c28; color: #ffb3ba; cursor: pointer; }
.activity-delete:hover { background: #48212b; }
@media (max-width: 500px) {
  .activity-row-actions { grid-template-columns: minmax(0, 1fr); }
  .activity-row-actions form { justify-self: end; }
}
