.surface-panel {
  background: var(--arena-surface-01);
  border: 1px solid var(--arena-border);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}

.section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.panel-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--arena-accent);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.btn-arena {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;

  &:hover {
    transform: translateY(-1px);
  }

  &:focus-visible {
    outline: 2px solid var(--arena-accent);
    outline-offset: 2px;
  }

  &.btn-primary {
    background: linear-gradient(135deg, var(--arena-violet), #5b3fd4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 92, 252, 0.35);

    &:hover {
      filter: brightness(1.08);
    }
  }

  &.btn-secondary {
    background: rgba(15, 17, 23, 0.55);
    border-color: var(--arena-border-strong);
    color: #fff;

    &:hover {
      border-color: rgba(255, 255, 255, 0.28);
      background: rgba(29, 32, 48, 0.8);
    }
  }

  &.btn-sm {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  &.btn-xs {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  &.btn-ghost {
    background: transparent;
    border-color: var(--arena-border);
    color: var(--arena-text-secondary);
  }
}

.h-scroll {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);

  > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }
}

.game-card {
  position: relative;
  width: 148px;
  height: 210px;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--arena-border);
  background: var(--arena-surface-02);
  transition: transform 200ms ease, box-shadow 200ms ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 92, 252, 0.3);

    .game-card__img {
      transform: scale(1.04);
    }

    .game-card__sweep {
      transform: translateX(120%);
    }
  }

  &__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
  }

  &__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 11, 15, 0.95) 0%, transparent 55%);
  }

  &__sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 600ms ease;
    pointer-events: none;
  }

  &__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: var(--sp-3);
  }

  &__name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.2;
  }

  &__meta {
    font-size: 0.65rem;
    color: var(--arena-accent);
    font-weight: 600;
  }
}

.event-card {
  position: relative;
  display: block;
  width: 240px;
  min-height: 168px;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--arena-border);
  background: var(--arena-surface-02);
  transition: transform 200ms ease, box-shadow 200ms ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  &__art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
  }

  &__body {
    position: relative;
    z-index: 1;
    padding: var(--sp-4);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(9, 11, 15, 0.2), rgba(9, 11, 15, 0.85));
  }

  &__game {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
  }

  &__name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 auto;
    line-height: 1.25;
  }

  &__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-3);
    margin-top: var(--sp-3);
    font-size: 0.68rem;
    color: var(--arena-text-secondary);
    font-weight: 600;
  }

  &__prize {
    color: var(--arena-gold);
    font-weight: 800;
  }

  &--gold {
    border-color: rgba(255, 215, 0, 0.25);
    .event-card__game { color: #ffd700; }
  }

  &--blue {
    border-color: rgba(0, 212, 255, 0.25);
    .event-card__game { color: var(--arena-accent); }
  }

  &--green {
    border-color: rgba(34, 212, 126, 0.25);
    .event-card__game { color: var(--arena-green); }
  }

  &--violet {
    border-color: rgba(124, 92, 252, 0.3);
    .event-card__game { color: #b8a4ff; }
  }
}
