@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,900;1,400;1,900&display=swap');

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

:root {
  --bg: #161619;
  --bg-card: #121212;
  --text: #ffffff;
  --text-muted: #bbbbbb;
  --accent: hsl(209.88, 100%, 50%);
  --max-width: 1600px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

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

/* Header */

.site-header {
  padding: 24px 0;
  text-align: center;
  background-color: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 76px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links svg {
  width: 26px;
  height: 26px;
}

/* Sections */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

section h2 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 40px;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Welcome */

.welcome {
  text-align: center;
  padding-bottom: 24px;
}

.welcome + .games {
  padding-top: 24px;
}

.welcome h2 {
  background: linear-gradient(to right, var(--accent), #ffffff, var(--accent), #ffffff, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  animation: gradient-slide 36s linear infinite;
}

@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: -300% 50%; }
}

.welcome p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Games Grid */

#games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

#games-container .game-card {
  width: calc(25% - 24px);
}

.game-card {
  display: flex;
  flex-direction: column;
}

.game-image {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.game-image:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 6px 14px rgba(0, 0, 0, 0.6);
}

.game-image.upcoming::after {
  content: "UPCOMING";
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 14px;
  background-color: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-radius: 3px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.game-image img {
  width: 100%;
  height: auto;
  display: block;
}

.game-info {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.game-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Store links row */

.store-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transition: opacity 0.2s, transform 0.2s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.store-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

.store-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.presskit-link {
  display: inline-block;
  margin-left: 4px;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: none;
  color: var(--accent);
  transition: border-color 0.2s, color 0.2s;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.presskit-link:hover {
  border-color: var(--text);
  color: var(--text);
  opacity: 1;
}

/* Partners Carousel */

.games + .partners {
  padding-top: 0;
}

.partners {
  overflow: hidden;
}

.partners-carousel {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track {
  display: flex;
  gap: 32px;
  align-items: center;
  will-change: transform;
  width: max-content;
}

.partners-track img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  height: 140px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.partners-track img:hover {
  opacity: 1;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 16px 24px;
  background-color: var(--accent);
  color: var(--text);
  font-size: 1.05rem;
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 4px;
}

.site-footer a {
  color: var(--text);
}

.site-footer a:hover {
  opacity: 0.8;
}

.site-footer p {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 1200px) {
  #games-container .game-card {
    width: calc(33.333% - 22px);
  }
}

@media (max-width: 800px) {
  #games-container .game-card {
    width: calc(50% - 16px);
  }
}

@media (max-width: 560px) {
  #games-container .game-card {
    width: 100%;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .social-links {
    gap: 12px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }

  .site-logo {
    height: 42px;
  }
}
