body {
  background-color: #A38A75;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: rgba(144, 238, 144, 0.4);
}

::selection {
  background-color: #A8E6CF;
  color: #3E2723;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 50px;
  overflow: hidden;
  border: 2px dashed #FFFFFF;
  border-radius: 8px;
  box-sizing: border-box;
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.game-content {
  width: 90%;
  max-width: 800px;
  margin-top: 25px;
  text-align: center;
  box-sizing: border-box;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  padding: 5px 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  outline: none;
}

.tab-btn:hover {
  opacity: 0.8;
}

.tab-btn:focus, 
.tab-btn:active {
  outline: none;
  color: #8DE0A6;
}

.tab-btn.active {
  color: #8DE0A6;
}

.sneak-peek-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.sneak-peek-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px dashed #FFFFFF;
  border-radius: 6px;
  box-sizing: border-box;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
  transition: transform 0.2s ease;
  outline: none;
}

.sneak-peek-img:hover {
  transform: scale(1.05);
}

.sneak-peek-img:focus,
.sneak-peek-img:active {
  border-color: #8DE0A6;
}

.description {
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-rendering: pixelated;
  margin: 0 0 25px 0;
  min-height: 80px;
}

.features-list {
  position: relative;
  background-color: rgba(62, 39, 35, 0.25);
  border: 2px dashed #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  margin-bottom: 25px;
}

.features-title {
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 1px;
}

.features-list ul {
  margin: 0;
  padding-left: 20px;
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  line-height: 1.8;
}

.corner-img {
  position: absolute;
  width: 40px;
  height: auto;
  z-index: 10;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.top-left {
  top: -20px;
  left: -20px;
}

.bottom-right {
  bottom: -20px;
  right: -20px;
}

.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.download-text {
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.download-link {
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
}

.download-link:focus,
.download-link:active {
  color: #8DE0A6;
}

.unavailable-text {
  text-decoration: line-through;
  color: inherit;
}

hr.footer-divider {
  width: 90%;
  max-width: 800px;
  border: none;
  border-top: 2px dashed #FFFFFF;
  margin: 20px auto 0 auto;
}

footer {
  width: 100%;
  padding: 15px 0 25px 0;
  text-align: center;
}

.copyright {
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-card {
  position: relative;
  background-color: rgba(62, 39, 35, 0.95);
  border: 2px dashed #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.modal-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

@media (min-width: 768px) {
  .image-wrapper {
    height: 80px;
  }

  .tab-btn {
    font-size: 1.1rem;
  }

  .sneak-peek-img {
    width: 120px;
    height: 120px;
  }

  .description {
    font-size: 1.3rem;
  }

  .download-text {
    font-size: 1.2rem;
  }

  .download-link {
    font-size: 1.1rem;
  }

  .copyright {
    font-size: 1rem;
  }
}
