
/* ================================
   Game Page - Main Container
================================ */
.game-page__hero h1 {
  font-size: 4rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
   text-align: center;
  position: relative;
}


.game-page__hero-content {
  max-width: 900px;
  margin: 0 auto;
   text-align: center;
  position: relative;
}

.game-page {
  --game-page-bg: #080f18;
  --game-page-card-bg: #101010;
  --game-page-border: #383838;
  --game-page-text: #eeeeee;
  --game-page-muted: #b5b5b5;
  --game-page-accent: #00f47b;

  width: 100%;
  padding: 24px 12px;
  box-sizing: border-box;
  color: var(--game-page-text);
  direction: rtl;
  font-family: inherit;
}

.game-page *,
.game-page *::before,
.game-page *::after {
  box-sizing: border-box;
}

/* ================================
   Cards Grid
================================ */

.game-page .game-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* ================================
   Card
================================ */

.game-page .game-page__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--game-page-card-bg);
  border: 1px solid var(--game-page-border);
  border-radius: 12px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.game-page .game-page__card:hover {
  border-color: #555555;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
}

/* ================================
   Image and Video Area
================================ */

.game-page .game-page__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #202630;
}

.game-page .game-page__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-page .game-page__card:hover .game-page__image {
  transform: scale(1.04);
}

/* ================================
   Play Button
================================ */

.game-page .game-page__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #ff3030;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.game-page .game-page__play:hover {
  background: #e51f1f;
  transform: translate(-50%, -50%) scale(1.08);
}

.game-page .game-page__play span {
  display: block;
  width: 0;
  height: 0;
  margin-right: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #ffffff;
}

/* ================================
   Card Content
================================ */

.game-page .game-page__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 12px 12px;
  min-width: 0;
}

.game-page .game-page__title {
  margin: 0 0 12px;
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-align: right;
}

.game-page .game-page__description {
  margin: 0 0 18px;
  color: var(--game-page-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 2.15;
  text-align: justify;
  overflow-wrap: anywhere;
}

/* ================================
   Tags
================================ */

.game-page .game-page__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 2px;
}

.game-page .game-page__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid #303030;
  border-radius: 20px;
  background: #252525;
  color: #d2d2d2;
  font-size: 10px;
  line-height: 1.6;
  white-space: normal;
}

/* ================================
   Store Button
================================ */

.game-page .game-page__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid var(--game-page-accent);
  border-radius: 5px;
  background: transparent;
  color: var(--game-page-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.game-page .game-page__button:hover {
  background: var(--game-page-accent);
  color: #06130b;
}

/* ================================
   Tablet
================================ */

@media (max-width: 768px) {
  .game-page {
    padding: 18px 10px;
  }

  .game-page .game-page__grid {
    gap: 12px;
    
  }

  .game-page .game-page__content {
    padding: 13px 10px 10px;
  }

  .game-page .game-page__title {
    font-size: 14px;
  }

  .game-page .game-page__description {
    font-size: 12px;
    line-height: 2;
  }

  .game-page .game-page__tags {
    gap: 6px;
  }
}

/* ================================
   Mobile - One Card Per Row
================================ */

@media (max-width: 600px) {
  .game-page {
    padding: 14px 10px;
  }

  .game-page .game-page__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .game-page .game-page__card {
    width: 100%;
    border-radius: 10px;
  }

  .game-page .game-page__media {
    aspect-ratio: 16 / 9;
  }

  .game-page .game-page__content {
    padding: 15px 12px 12px;
  }

  .game-page .game-page__title {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .game-page .game-page__description {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 2.1;
  }

  .game-page .game-page__tags {
    margin-bottom: 18px;
  }

  .game-page .game-page__button {
    min-height: 40px;
    font-size: 12px;
  }
}

/* ================================
   Small Mobile
================================ */

@media (max-width: 360px) {
  .game-page .game-page__content {
    padding: 12px 9px 10px;
  }

  .game-page .game-page__description {
    font-size: 12px;
  }

  .game-page .game-page__tags span {
    padding: 4px 8px;
    font-size: 10px;
  }
}
