.competition-shell {
  width: min(100%, 1180px);
  padding-top: 28px;
  padding-bottom: 80px;
}

.competition-intro {
  width: fit-content;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(8, 4, 15, 0.3);
}

.competition-intro .eyebrow {
  margin: 0;
}

.competition-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 107, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 107, 0.1), transparent 34%),
    rgba(13, 8, 24, 0.9);
  box-shadow: 0 14px 34px rgba(8, 4, 15, 0.24);
}

.competition-toolbar-copy {
  min-width: 0;
}

.competition-toolbar-copy p {
  margin: 0;
}

.competition-toolbar-kicker {
  color: #ffe4a0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competition-toolbar-copy [data-competition-filter-status] {
  margin-top: 4px;
  color: #d7c9e8;
  font-size: 0.84rem;
  font-weight: 700;
}

.competition-status-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(201, 153, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 4, 14, 0.8);
}

.competition-filter-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d7c9e8;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 10px 14px;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.competition-filter-button:hover {
  color: #fff3cc;
  transform: translateY(-1px);
}

.competition-filter-button.is-active {
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.98), rgba(255, 125, 52, 0.98));
  color: #1b0710;
  box-shadow:
    0 8px 18px rgba(255, 147, 48, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.competition-filter-button:focus-visible {
  outline: 2px solid rgba(255, 214, 107, 0.8);
  outline-offset: 2px;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.competition-panel {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(201, 153, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 8, 24, 0.96), rgba(6, 4, 14, 0.98));
  box-shadow: 0 14px 34px rgba(8, 4, 15, 0.32);
}

.competition-panel.competition-is-new {
  border-color: rgba(255, 214, 107, 0.44);
  box-shadow:
    0 14px 34px rgba(8, 4, 15, 0.32),
    0 0 24px rgba(255, 169, 64, 0.14);
}

.competition-panel.competition-is-hidden {
  display: none;
}

.competition-new-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 214, 107, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.98), rgba(255, 125, 52, 0.98));
  color: #1b0710;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 8px 18px rgba(255, 147, 48, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.competition-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.competition-feature .competition-label {
  margin-bottom: 0;
}

.competition-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.competition-claimed-badge,
.competition-unclaimed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  overflow: hidden;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

.competition-claimed-badge {
  border: 1px solid rgba(88, 255, 154, 0.54);
  background: rgba(45, 183, 104, 0.16);
  color: #85ffb2;
  text-shadow: 0 0 8px rgba(0, 255, 132, 0.72), 0 0 18px rgba(0, 255, 132, 0.38);
  box-shadow: 0 0 18px rgba(45, 183, 104, 0.16);
}

.competition-unclaimed-badge {
  border: 1px solid rgba(255, 91, 91, 0.58);
  background: rgba(205, 39, 55, 0.16);
  color: #ff7b7b;
  text-shadow: 0 0 8px rgba(255, 64, 64, 0.72), 0 0 18px rgba(255, 64, 64, 0.38);
  box-shadow: 0 0 18px rgba(205, 39, 55, 0.16);
}

.competition-claimed-badge::after,
.competition-unclaimed-badge::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% 0;
  width: 42%;
  opacity: 0.9;
  transform: translateX(-180%) skewX(-18deg);
  animation: competition-status-laser 1.65s linear infinite;
  pointer-events: none;
}

.competition-claimed-badge::after {
  background: linear-gradient(90deg, transparent, rgba(236, 255, 243, 0.86), transparent);
}

.competition-unclaimed-badge::after {
  background: linear-gradient(90deg, transparent, rgba(255, 232, 232, 0.86), transparent);
}

@keyframes competition-status-laser {
  0% {
    transform: translateX(-180%) skewX(-18deg);
  }

  100% {
    transform: translateX(340%) skewX(-18deg);
  }
}

.competition-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  min-height: 96px;
  margin-top: 0;
}

.competition-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competition-cape-icon {
  width: 56px;
  height: 72px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
}

.competition-task-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.competition-prestige-icon {
  width: 64px;
  height: 78px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 15px 22px rgba(0, 0, 0, 0.36));
}

.competition-boss-icon {
  width: 64px;
  height: 64px;
}

.competition-wildy-icon {
  width: 40px;
  height: 40px;
  image-rendering: auto;
}

.competition-uim-icon {
  width: 40px;
  height: 40px;
  image-rendering: auto;
}

.competition-skilling-icon {
  width: 42px;
  height: 42px;
  image-rendering: auto;
}

.competition-all-skilling-pets-icon {
  width: 66px;
  height: 58px;
}

.competition-clue-icon {
  width: 66px;
  height: 58px;
}

.competition-mythic-icon {
  width: 54px;
  height: 78px;
}

.competition-nyxara-icon {
  width: 66px;
  height: 92px;
  object-fit: contain;
}

.competition-yama-icon {
  width: 76px;
  height: 72px;
  object-fit: contain;
}

.competition-doe-icon {
  width: 64px;
  height: 86px;
  object-fit: contain;
}

.competition-corrupted-crown-icon {
  width: 76px;
  height: 62px;
  object-fit: contain;
}

.competition-gim-trinity-icon {
  width: 54px;
  height: 78px;
  object-fit: contain;
}

.competition-hcim-max-icon {
  width: 54px;
  height: 78px;
  object-fit: contain;
}

.competition-gim-max-icon {
  width: 58px;
  height: 88px;
  object-fit: contain;
}

.competition-reward-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  align-self: end;
  margin-top: auto;
  padding: 9px 11px;
  border: 1px solid rgba(255, 214, 107, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at top, rgba(255, 214, 107, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.competition-reward-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.competition-reward-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.competition-reward-icons img {
  width: 30px;
  height: 30px;
}

.competition-reward-row strong {
  color: #ffe4a0;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.competition-reward-row .competition-reward-long {
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.18;
  white-space: normal;
}

.competition-winner-slot {
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 214, 107, 0.22);
  color: #d7c9e8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.competition-winner-slot-multi {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  max-width: 46%;
  line-height: 1.25;
  white-space: normal;
}

.competition-winner-prefix {
  white-space: nowrap;
}

.competition-winner-names {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px 7px;
  min-width: 0;
}

.competition-winner-name {
  display: inline-block;
  color: #7cffad;
  background: linear-gradient(90deg, #7cffad 0%, #7cffad 34%, #ecfff3 48%, #00ff84 54%, #7cffad 68%, #7cffad 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 8px rgba(0, 255, 132, 0.72), 0 0 18px rgba(0, 255, 132, 0.38);
  text-transform: none;
  -webkit-text-fill-color: transparent;
  animation: competition-winner-laser 1.65s linear infinite;
}

.competition-winner-name-open {
  color: #c999ff;
  background: linear-gradient(90deg, #c999ff 0%, #c999ff 34%, #f3e8ff 48%, #9f65ff 54%, #c999ff 68%, #c999ff 100%);
  text-shadow: 0 0 8px rgba(201, 153, 255, 0.72), 0 0 18px rgba(159, 101, 255, 0.38);
}

@keyframes competition-winner-laser {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.competition-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 214, 107, 0.3);
  border-radius: 8px;
  background: rgba(255, 214, 107, 0.09);
  color: #ffe4a0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.competition-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(0.98rem, 1.45vw, 1.22rem);
  line-height: 1.22;
  text-transform: uppercase;
}

.competition-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .competition-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .competition-status-switch {
    width: 100%;
  }

  .competition-filter-button {
    width: 100%;
  }

  .competition-grid {
    grid-template-columns: 1fr;
  }

  .competition-title-row {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .competition-cape-icon {
    width: 56px;
    height: 72px;
  }

  .competition-task-icon {
    width: 56px;
    height: 56px;
  }

  .competition-prestige-icon {
    width: 64px;
    height: 78px;
  }

  .competition-boss-icon {
    width: 64px;
    height: 64px;
  }

  .competition-wildy-icon {
    width: 40px;
    height: 40px;
  }

  .competition-uim-icon {
    width: 40px;
    height: 40px;
  }

  .competition-skilling-icon {
    width: 42px;
    height: 42px;
  }

  .competition-all-skilling-pets-icon {
    width: 66px;
    height: 58px;
  }

  .competition-clue-icon {
    width: 66px;
    height: 58px;
  }

  .competition-mythic-icon {
    width: 54px;
    height: 78px;
  }

  .competition-nyxara-icon {
    width: 66px;
    height: 92px;
  }

  .competition-yama-icon {
    width: 76px;
    height: 72px;
  }

  .competition-doe-icon {
    width: 64px;
    height: 86px;
  }

  .competition-corrupted-crown-icon {
    width: 76px;
    height: 62px;
  }

  .competition-gim-trinity-icon {
    width: 54px;
    height: 78px;
  }

  .competition-hcim-max-icon {
    width: 54px;
    height: 78px;
  }

  .competition-gim-max-icon {
    width: 58px;
    height: 88px;
  }
}

@media (max-width: 520px) {
  .competition-card-status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .competition-title-row {
    grid-template-columns: 1fr;
  }

  .competition-cape-icon,
  .competition-task-icon,
  .competition-prestige-icon,
  .competition-mythic-icon,
  .competition-nyxara-icon,
  .competition-yama-icon,
  .competition-doe-icon,
  .competition-corrupted-crown-icon,
  .competition-gim-trinity-icon,
  .competition-hcim-max-icon,
  .competition-gim-max-icon {
    justify-self: start;
  }

  .competition-reward-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .competition-winner-slot {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 8px;
    border-left: 0;
    border-top: 1px solid rgba(255, 214, 107, 0.22);
    text-align: left;
    white-space: normal;
  }

  .competition-winner-slot-multi {
    align-items: flex-start;
    max-width: 100%;
  }

  .competition-winner-names {
    justify-content: flex-start;
  }
}
