.introduction {
  display: grid;
  grid-template-columns: 60% 20% 20%;
  padding: 5px;
  width: 900px;
  height: 300px;
}

.intro-block p {
  background-color: #161F33;
  border: 2px solid #2060D0;
  padding: 15px;
  font-size: 15px;
}


.games {
  background-color: #161F33;
  border: 2px solid #2060D0;
  padding: 10px;
}

.games-block {
  display: grid;
  grid-template-columns: auto auto auto;
}

.games-block section {
    background-color: #161F33;
}

.technologies {
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 10px;
}

.technologies section {
    background-color: #161F33;
    border: 1px solid #2060D0;
}

.experience {
  background-color: #161F33;
  border: 2px solid #2060D0;
  padding: 5px 10px 20px 10px;
  font-size: 10px;
  text-align: left;
}

.hobbies {
  display: grid;
  background-color: #161F33;
  border: 2px solid #2060D0;
  grid-template-columns: auto auto auto;
  padding: 10px;
}

.hobbies section {
  background-color: #161F33;
}

.game-ticker-section {
  padding: 40px 0;
  max-width: 100%;
  overflow: hidden;
}

/* 1. Mask effect: softens left and right edges */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* 2. The sliding track */
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollInfinite 28s linear infinite;
  will-change: transform;
}

/* 3. Pause on hover so the user can click */
.marquee-track:hover {
  animation-play-state: paused;
}

/* 4. Single Card Styling */
.game-card {
  flex: 0 0 160px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 159, 85, 0.6);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.game-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.card-info {
  padding: 10px;
}

.card-info h4 {
  margin: 6px 0 0 0;
  font-size: 0.85rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge.playing { background: #10b981; color: #fff; }
.badge.completed { background: #3b82f6; color: #fff; }
.badge.active { background: #8b5cf6; color: #fff; }
.badge.favorite { background: #f59e0b; color: #fff; }
.badge.time { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; }

/* 5. Infinite Scroll Math: 50% = exactly one set of cards */
@keyframes scrollInfinite {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 10px), 0, 0); /* accounts for half the flex gap */
  }
}

/* 6. Click Modal */
.game-modal {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.game-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-body h3 { margin: 0 0 10px 0; font-size: 1.25rem; }
.modal-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.modal-body p { font-size: 0.9rem; line-height: 1.6; color: #cbd5e1; margin: 0; }

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}
.close-modal:hover { color: #fff; }

#map {
  width: 100%;
  max-width: 100%;
}

.introduction, .games-block {
  min-width: 0;
  max-width: 100%;
}