*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,sans-serif;color:#172554;background:#fff}
.header{min-height:68px;padding:12px 6%;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb;background:#fff}
.brand{font-weight:900;color:#172554;text-decoration:none;white-space:nowrap}
.brand span{color:#2563eb}
nav{display:flex;gap:20px;flex-wrap:wrap}
nav a{color:#334155;text-decoration:none;font-size:14px}
nav a:hover{color:#2563eb}
.hero{padding:78px 7%;background:linear-gradient(135deg,#eff6ff,#fff);text-align:center}
.eyebrow{color:#2563eb;font-size:12px;font-weight:bold;letter-spacing:2px}
.hero h1{font-size:clamp(34px,6vw,58px);margin:15px auto;max-width:800px}
.hero>p:not(.eyebrow){color:#64748b;line-height:1.7}
.hero-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:25px}
.platform-link{display:inline-block;padding:13px 20px;border-radius:10px;background:#2563eb;color:white;text-decoration:none;font-weight:bold}
.platform-link.secondary{background:#172554}
.catalog,.about-section{padding:48px 7%}
.platform-section{scroll-margin-top:20px}
.pc-section{background:#f8fafc}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.section-heading h2{font-size:clamp(25px,4vw,34px);margin:7px 0}
.platform-count{font-size:13px;color:#64748b;background:#eff6ff;padding:8px 12px;border-radius:20px}
#androidSearch,#pcSearch{width:100%;max-width:520px;padding:14px;border:1px solid #cbd5e1;border-radius:10px;font-size:15px;background:#fff}
.game-count{margin:18px 0;color:#64748b;font-size:14px}
.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:18px}
.game-card{border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;color:inherit;text-decoration:none;background:#fff;transition:transform .15s ease,box-shadow .15s ease}
.game-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0f172a12}
.game-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#eff6ff}
.game-card-body{padding:0 13px 12px}
.game-card h3{font-size:16px;line-height:1.4}
.card-category{font-size:12px;color:#64748b}
.empty-state{color:#64748b;padding:18px 0}
.about-section p{color:#64748b;line-height:1.7}
footer{text-align:center;padding:28px;background:#f8fafc;color:#64748b}
@media(max-width:600px){.header{align-items:flex-start;flex-direction:column}.hero{padding:58px 6%}.catalog,.about-section{padding:36px 5%}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}


/* Blue View Details button on every game card */
.details-button {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.game-card:hover .details-button {
  background: #1d4ed8;
}

.game-card-no-image .game-card-body {
  padding-top: 14px;
}

@media (max-width: 600px) {
  .details-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}


/* Mobile Game Radar - polished game cards */
.game-grid {
  align-items: stretch;
  gap: 16px;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 25px rgba(37, 99, 235, .10);
}

.game-card-no-image {
  min-height: 170px;
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
}

.game-card h3 {
  margin: 0 0 10px;
  color: #172554;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.game-card .card-category {
  margin: 5px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.details-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.game-card:hover .details-button {
  background: #1d4ed8;
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .game-card {
    border-radius: 13px;
  }

  .game-card-body {
    padding: 12px;
  }

  .game-card h3 {
    font-size: 14px;
  }

  .details-button {
    padding: 10px 7px;
    font-size: 12px;
  }
}


/* MOBILE-GAME-RADAR-GALLERY */
.hero {
  padding: 22px 5% 30px;
}
.game-gallery {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 0 38px;
}
.gallery-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-viewport.is-dragging {
  cursor: grabbing;
}
.gallery-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  transition: transform .48s ease;
}
.gallery-slide {
  flex: 0 0 20%;
  min-width: 0;
  padding: 0 5px;
}
.gallery-slide img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 12px;
  background: #eff6ff;
  pointer-events: none;
}
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #fff;
  color: #2563eb;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 9px #17255418;
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-arrow:active {
  background: #eff6ff;
}
@media(max-width:600px) {
  .hero {
    padding: 15px 4% 23px;
  }
  .game-gallery {
    padding: 0 29px;
    margin-bottom: 13px;
  }
  .gallery-slide {
    flex-basis: 33.333333%;
    padding: 0 3px;
  }
  .gallery-slide img {
    height: 112px;
    border-radius: 9px;
  }
  .gallery-arrow {
    width: 25px;
    height: 36px;
    font-size: 15px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-track { transition-duration: .01ms; }
}


/* MOBILE-GAME-RADAR-GALLERY-FIX */
.game-gallery {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
}
.gallery-viewport {
  box-sizing: border-box;
  display: block;
  width: 100%;
}
.gallery-track {
  display: flex;
  width: max-content;
  align-items: stretch;
}
.gallery-slide {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 0;
}
.gallery-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
}


/* MOBILE-GAME-RADAR-COMPACT-SPACING */
.hero {
  padding: 5px 4% 7px !important;
}
.game-gallery {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
}
.hero .eyebrow {
  margin: 1px 0 3px !important;
}
.hero h1 {
  margin: 2px 0 4px !important;
  line-height: 1.12 !important;
}
.hero > p:not(.eyebrow) {
  margin: 3px 0 5px !important;
}
.hero-actions {
  margin-top: 4px !important;
  gap: 6px !important;
}
.platform-section {
  padding-top: 8px !important;
}
.section-heading {
  margin-bottom: 8px !important;
}


/* MOBILE-GAME-RADAR-DOWNLOAD-BUTTON */
button.download-disabled {
  display: block;
  width: min(100%, 420px);
  min-height: 76px;
  margin: 18px auto;
  padding: 20px 28px;
  background: #16a34a !important;
  color: #ffffff !important;
  border: 2px solid #15803d !important;
  border-radius: 14px;
  font-size: 2em !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-align: center;
  opacity: 1 !important;
  box-shadow: 0 5px 12px rgba(22, 163, 74, .25);
  cursor: not-allowed;
}
