:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #151820;
  --panel-strong: #1c202a;
  --border: #2d3240;
  --text: #eef0f5;
  --muted: #9ba3b8;
  --accent: #7c9fff;
  --content: 1160px;
}

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

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -10%, rgba(124, 159, 255, .18), transparent 34rem),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 36px 36px, 36px 36px, auto;
  color: var(--text);
  font-family: "Outfit", "DotGothic16", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: clamp(54px, 9vw, 96px) 0 48px;
}

.hero::after {
  display: block;
  width: min(420px, 70%);
  height: 3px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--accent), #4bd06d 58%, transparent);
  content: "";
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-logo .icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(124, 159, 255, .55);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124, 159, 255, .22), rgba(75, 208, 109, .12));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  font-size: 31px;
}

.hero-title {
  margin: 0;
  background: linear-gradient(118deg, #f1f3ff, #9db5ff 52%, #65dc89);
  background-clip: text;
  color: transparent;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
}

.hero-sub {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 2vw, 1.12rem);
  overflow-wrap: anywhere;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-label::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  --season: var(--accent);
  --season-soft: rgba(124, 159, 255, .13);
  --season-deep: #334779;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--season-soft), transparent 45%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.game-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--season);
  content: "";
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--season) 64%, var(--border));
  box-shadow: 0 24px 58px rgba(0, 0, 0, .38);
  transform: translateY(-3px);
}

.s1 { --season: #4bd06d; --season-soft: rgba(75, 208, 109, .12); --season-deep: #295d36; }
.s2 { --season: #ff9b58; --season-soft: rgba(255, 155, 88, .12); --season-deep: #6c3c20; }
.s3 { --season: #78ddb8; --season-soft: rgba(120, 221, 184, .12); --season-deep: #245d4c; }
.s4 { --season: #e5764d; --season-soft: rgba(229, 118, 77, .14); --season-deep: #713822; }

.card-top {
  display: grid;
  min-width: 0;
  padding: 27px 27px 24px 30px;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "tag tag"
    "icon name"
    "icon description"
    "meta meta";
  align-content: start;
  column-gap: 17px;
}

.season-tag {
  display: inline-flex;
  width: max-content;
  min-height: 27px;
  margin-bottom: 18px;
  padding: 4px 10px;
  grid-area: tag;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--season) 72%, transparent);
  border-radius: 999px;
  background: var(--season-soft);
  color: var(--season);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.s4 .season-tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--season);
  box-shadow: 0 0 10px var(--season);
  content: "";
}

.server-icon {
  display: block;
  width: 72px;
  height: 72px;
  grid-area: icon;
  border: 2px solid var(--season);
  border-radius: 12px;
  background: #11141a;
  object-fit: cover;
  image-rendering: pixelated;
}

.s2 .server-icon,
.s3 .server-icon,
.s4 .server-icon {
  image-rendering: auto;
}

.s4 .server-icon {
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--season-soft);
}

.card-name {
  margin: 2px 0 5px;
  grid-area: name;
  align-self: end;
  color: var(--season);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card-desc {
  margin: 0;
  grid-area: description;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  margin-top: 22px;
  grid-area: meta;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-chip {
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, .16);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.card-actions {
  display: grid;
  padding: 14px 24px 16px 27px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .14);
}

.s2 .card-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

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

.btn-primary-s1,
.btn-primary-s2,
.btn-primary-s3,
.btn-primary-s4 {
  border-color: var(--season);
  background: var(--season-deep);
  color: #fff;
}

.btn-primary-s1:hover,
.btn-primary-s2:hover,
.btn-primary-s3:hover,
.btn-primary-s4:hover {
  background: color-mix(in srgb, var(--season-deep) 78%, var(--season));
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, .055);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--season) 55%, var(--border));
  background: var(--season-soft);
}

a:focus-visible,
.game-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--season, var(--accent)) 75%, white);
  outline-offset: 3px;
}

footer {
  margin-top: 72px;
  padding: 25px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .84rem;
  text-align: center;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--accent);
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .games {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 28px, var(--content));
  }

  .hero {
    padding-top: 42px;
  }

  .hero-logo {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-logo .icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    font-size: 26px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 14vw, 3.5rem);
  }

  .card-top {
    padding: 23px 20px 20px 23px;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 14px;
  }

  .server-icon {
    width: 60px;
    height: 60px;
  }

  .card-name {
    font-size: 1.16rem;
  }

  .card-desc {
    font-size: .84rem;
  }

  .card-actions,
  .s2 .card-actions {
    padding: 12px 18px 14px 21px;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
