html,
body {
  background: #000;
  padding: 0;
  font-family: "Play", sans-serif;
  margin: 0;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
}

button {
  transition: 0.3s;
  outline: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  background: rgb(18, 18, 18);
}

header .logo svg {
  display: block;
  height: 18px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-create {
  background-color: rgb(255, 85, 0);
  color: rgb(241, 241, 241);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
}

.btn-create:hover {
  background: rgb(255, 108, 32);
}

.btn-login-header {
  background: #333;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
}

.btn-login-header:hover {
  background: #444;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(220deg, rgb(255, 85, 32), rgb(0, 0, 0), rgb(0, 0, 0)) 0% 0% / 225%;
  animation: 15s infinite fading;
  flex-direction: column;
  gap: 100px;
}

top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: start;
  align-items: center;
  margin-top: 150px;
  max-width: 1600px;
  width: 100%;
  padding: 0 16px;
}

top > p {
  font-size: 40px;
  color: white;
  font-weight: 700;
  text-align: center;
}

top > span {
  font-size: 22px;
  color: rgb(204, 204, 204);
  text-shadow: rgba(255, 255, 255, 0.25) 0px 1px 6px;
  letter-spacing: 0.005em;
  font-weight: 500;
  text-align: center;
}

@keyframes fading {
  0% {
    background-position: 0% 81%;
  }
  50% {
    background-position: 50% 20%;
  }
  100% {
    background-position: 0% 81%;
  }
}

features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 40px;
  margin-top: 20px;
  width: 100%;
}

.feature {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: start;
}

.feature p {
  font-size: 18px;
  color: rgb(204, 204, 204);
}

.feature b {
  display: block;
  color: white;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature span x {
  color: #ff5500;
  font-weight: 700;
}

.feature svg,
.feature img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.start {
  background-color: rgb(255, 85, 0);
  color: rgb(241, 241, 241);
  text-transform: uppercase;
  font-size: 14px;
  height: 48px;
  margin-top: 40px;
  padding: 16px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-radius: 4px;
}

.start:hover {
  background: rgb(255, 108, 32);
}

.content {
  margin-top: 50px;
  width: 100%;
  display: flex;
  position: relative;
  justify-content: start;
  flex-direction: column;
  align-items: center;
  background: rgb(18, 18, 18);
}

.content .bottom {
  height: 120px;
  pointer-events: none;
  width: 100%;
  position: absolute;
  transform: scale(-1);
  bottom: -120px;
  background: linear-gradient(0deg, rgb(0, 0, 0) 1%, transparent 30.32%);
}

rule {
  display: flex;
  margin: 50px 0;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1600px;
  padding: 0 16px;
}

rule div {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

rule div > p {
  font-size: 32px;
  color: white;
  font-weight: bold;
}

rule img {
  width: 350px;
  max-width: 40%;
  border-radius: 8px;
}

rule div > span {
  font-size: 16px;
  color: rgb(204, 204, 204);
  line-height: 1.6;
}

rule a,
.openrules {
  font-size: 16px;
  color: #ff5500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

rule a:hover,
.openrules:hover {
  opacity: 0.85;
}

games {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  gap: 10px;
  padding: 0 16px 80px;
}

games .title {
  font-size: 28px;
  letter-spacing: 0.0025em;
  color: white;
  font-weight: bold;
}

games .subtitle {
  color: rgb(204, 204, 204);
  font-size: 18px;
}

.maps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

.card {
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: start;
  padding: 20px;
  border-radius: 0.5rem;
  gap: 10px;
  color: white;
}

.card:hover {
  filter: grayscale(1);
}

.card > span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.card p {
  font-size: 14px;
  color: white;
}

.card p b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card .mode-desc {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

@media screen and (max-width: 1700px) {
  top,
  rule,
  games {
    max-width: 1400px;
  }
}

@media screen and (max-width: 1500px) {
  top,
  rule,
  games {
    max-width: 1200px;
  }
}

@media screen and (max-width: 1300px) {
  top,
  rule,
  games {
    max-width: 1000px;
  }

  rule img {
    width: 300px;
  }

  .feature span {
    font-size: 12px;
  }

  .feature p {
    font-size: 16px;
  }

  .feature svg,
  .feature img {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 1000px) {
  features {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  top {
    max-width: 95%;
    margin-top: 100px;
  }

  top > span {
    font-size: 14px;
  }

  top > p {
    font-size: 32px;
  }

  rule img {
    display: none;
  }

  rule {
    max-width: 95%;
  }

  .maps {
    grid-template-columns: 1fr;
  }

  games {
    max-width: 95%;
  }

  .feature {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    min-height: 80px;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-create,
  .btn-login-header {
    font-size: 10px;
    padding: 8px 12px;
  }
}

@media screen and (max-width: 520px) {
  .start {
    padding: 16px 48px;
    width: calc(100% - 32px);
  }
}
