@import url('../style.css');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0f12;
  color: #ececec;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0px 20px;
}

header {
  width: 90%;
  max-width: 1200px;
  margin: 2rem 0;
  padding: 1rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease;
}

.grid {
  width: 90%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.8s ease forwards;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card .icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 15px;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card a.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  font-weight: 600;
}

.btn--primary {
    position: absolute !important;
    top: 2px !important;
    right: 12px !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
}

.rules-link {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.342);
  text-align: center;
  margin: 0;
  transition: color 0.3s;
}
.rules-link:hover {
  color: rgba(255, 255, 255, 0.4);
}
