
/* Games Page */

.games-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 35px 20px;
    color: #222;
}


/* Games Hero - Text Left, Image Right */

.games-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;

    max-width: 1150px;
    margin: 0 auto;
    padding: 45px 50px;

    background: #f3f5fa;
    border-radius: 14px;
    overflow: hidden;
}

.games-hero-content {
    text-align: left;
}

.games-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #304d85;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.games-hero-content h1 {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.25;
    color: #172033;
}

.games-hero-content p {
    max-width: 520px;
    margin: 0 0 25px;
    color: #626d7f;
    font-size: 16px;
    line-height: 1.8;
}

.games-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 16px 28px;
    border-radius: 9px;

    background: #e6211c;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 8px 18px rgba(230, 33, 28, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.games-download-btn:hover {
    background: #c91b17;
    transform: translateY(-2px);
}

.games-hero-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #697386;
    font-size: 12px;
}

.games-hero-note span:first-child {
    color: #287a48;
    font-weight: 700;
}

.games-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.games-hero-image img {
    display: block;
    width: 100%;
    max-width: 390px;
    max-height: 330px;
    object-fit: contain;
    border-radius: 12px;
}

/* Tablet */
@media (max-width: 800px) {
    .games-hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 20px;
        padding: 35px 25px;
    }

    .games-hero-content h1 {
        font-size: 30px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .games-hero {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .games-hero-content h1 {
        font-size: 28px;
    }

    .games-hero-content p {
        font-size: 15px;
    }

    .games-hero-image {
        grid-row: 1;
    }

    .games-hero-image img {
        max-width: 300px;
        max-height: 250px;
    }
}


.games-content {
    padding: 35px 0;
}

.games-content h2,
.game-information h2 {
    font-size: 26px;
    margin: 0 0 22px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.game-card {
    padding: 24px 20px;
    border: 1px solid #e2e5ec;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.game-icon {
    font-size: 34px;
    margin-bottom: 14px;
}

.game-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.game-card p {
    min-height: 70px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.game-card a {
    color: #304d85;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.game-card a:hover {
    text-decoration: underline;
}

.game-information {
    padding: 25px 0;
    border-top: 1px solid #e5e5e5;
}

.game-information p {
    color: #666;
    line-height: 1.8;
}

.games-footer {
    padding: 22px 20px;
    text-align: center;
    background: #f3f5fa;
}

.games-footer p {
    color: #666;
}

.games-footer a {
    color: #304d85;
    text-decoration: none;
}

@media (max-width: 850px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .games-page {
        padding: 20px 15px;
    }

    .games-hero {
        padding: 35px 15px;
    }

    .games-hero h1 {
        font-size: 28px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card p {
        min-height: auto;
    }
}
/* Game sections */
.games-section {
  padding: 32px 0;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.games-section h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 28px;
  line-height: 1.4;
  text-align: left;
}

.section-intro {
  max-width: 850px;
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

/* Responsive game grid */
.game-grid {
 display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  align-items: stretch;
}

/* Individual game card */
.game-card {
 min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
 transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);     
}

.game-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Game thumbnail */
.game-thumb {
  display: block;
  width: 100% !important;
  height: 150px !important;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  background: #171717;
}

/* Card text */
.game-card-body {
   display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
  text-align: left;
}

.game-card h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.game-card p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

/* Keep links aligned at the bottom */
.card-link {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: #a66b00;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

/* Notice box */
.games-notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff8e8;
  border-left: 4px solid #e5a323;
  border-radius: 6px;
}

.games-notice p {
  margin: 0;
  color: #374151;
  line-height: 1.8;
}

/* Category guides below the grid */
.game-guide {
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: 20px;
}

.game-guide:last-child {
  border-bottom: none;
}

.game-guide h3 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.5;
  text-align: left;
}

.game-guide p {
  max-width: 900px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
  text-align: left;
}

.game-guide ul {
  margin: 12px 0 0;
  padding-left: 24px;
  color: #374151;
  line-height: 1.9;
}

.game-guide li {
  margin-bottom: 7px;
}

/* How to choose section */
#how-to-choose {
  padding: 30px 0;
  text-align: left;
}

#how-to-choose p,
#how-to-choose li {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

#how-to-choose ul {
  padding-left: 24px;
}

/* Tablet: 3 columns */
@media (max-width: 1050px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .game-thumb {
    height: 180px !important;
  }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-thumb {
    height: 145px !important;
    padding: 6px;
  }

  .game-card-body {
    padding: 10px;
  }

  .game-card h3 {
    font-size: 14px;
  }

  .game-card p,
  .card-link {
    font-size: 12px;
  }
}

.about-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--about-border);
}

.about-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.4;
  text-align: left;
}

.about-section p {
  margin: 0 0 14px;
  color: var(--about-muted);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section ul {
  margin: 12px 0 0;
  padding-left: 24px;
  color: var(--about-muted);
}

.about-section li {
  margin: 0 0 10px;
  padding-left: 4px;
}

.about-section li:last-child {
  margin-bottom: 0;
}

.about-section strong {
  color: #263244;
}

.about-section a {
  color: #925d00;
  font-weight: 700;
  text-underline-offset: 3px;
}

.about-section a:hover {
  color: #6f4600;
}

.about-notice {
  margin-top: 26px;
  padding: 16px 18px;
  color: #51402a;
  background: var(--about-accent-bg);
  border-left: 4px solid #e5a323;
  border-radius: 7px;
}

.about-notice strong {
  color: #704900;
}

.contact-section {
  padding: 27px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
     max-width: 830px;
     margin-left: auto;
     margin-right: auto;
     text-align: left;

}

.contact-section h2 {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: var(--heading);
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.4;
  text-align: left;
}

.contact-section h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.contact-section p {
  margin: 0 0 14px;
  color: var(--body-text);
}

.contact-section p:last-child {
  margin-bottom: 0;
}

.contact-section ul {
  margin: 12px 0 18px;
  padding-left: 23px;
  color: var(--body-text);
}

.contact-section li {
  margin-bottom: 7px;
  padding-left: 3px;
}

.contact-section li::marker {
  color: var(--accent);
}

.contact-section strong {
  color: var(--heading);
}

.contact-warning {
  margin-top: 22px;
  padding: 18px;
  background: var(--panel-bg);
  border: 1px solid #6d4b16;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--body-text);
}

.contact-warning strong {
  color: var(--heading);
}

.email-line {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-section a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edit-note {
  color: var(--muted-text) !important;
  font-size: 13px;
}

.contact-notice {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body-text);
}

.contact-notice strong {
  color: var(--accent);
}
