
@font-face {
  font-family: 'CutePixel';
  src: url('CutePixel.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: #1E1D1D;
  font-family: 'CutePixel', sans-serif;
  margin: 0;
  padding: 0;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  
  background-image: url("Background3.png");
  background-repeat: repeat;
  background-size: 100% auto;
  background-position: 0px 0px;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
}

h1 {
  color: #FFF0DC;
  font-size: clamp(2rem, 9vw, 10rem);
  margin: 0; 
  text-align: center;
}

h3 {
  color: #F0BB78;
  font-size: clamp(1.5rem, 3vw, 8rem);
  margin: 0.0em 0 0;
  text-align: center;
  translate: 0 -2.5vw;
}

p {
  color: #FFF0DC;
  line-height: 0.1;
}


.character-sprite img {
  transform: translateZ(0); 
  will-change: transform;
}

.hero {
  height: 20%;
  display: flex;
  justify-content: center;   
  text-align: center;
  color: #FFF0DC;      
  position: relative;
  padding-top: 2.5rem;
  background-color: #1E1D1D;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  width: 90%;
  max-width: 1800px;
  margin: 0 auto -3rem;  

  border-radius: 12px;
  position: relative;
  overflow: visible;
}

.about-me {
  width: 60%; 
  margin: 2rem auto;
  margin-top: 5rem;
  background-color: #543A14;
  border-radius: 12px;
  padding: 1%;
  
  position: relative; 
}

.about-inner {
  background-color: #3d290c;
  border-radius: 12px;
  
  padding: 2rem 2rem 5rem 2rem;
  
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-inner img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.about-inner h2 {
  color: #F0BB78;
  margin: -25px 0 0.5rem 0;
  padding: 0;
  line-height: 1;
  font-size: clamp(2rem, 3.5vw, 4.5rem);
}

.about-inner p {
  font-size: clamp(0.7rem, 1.3vw, 2rem);
  line-height: 1.02;
  padding-top: 0px;
  margin-top: 0px;
}

.profile-container {
  position: relative;
  width: 200px; 
  height: 200px;
  flex-shrink: 0; 
  align-self: start;

  clip-path: polygon(
    -50px -100px,
    250px -100px,
    250px 100px,
    200px 100px,
    200px 199px,
    0px 199px,
    0px 0px,
    -50px 0px
  );
}

.pfp-bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%; 
  z-index: 1;
  user-select: none;
}

.peeking-character {
  position: absolute;
  top: -8px; 
  left: 0px;  
  width: 100%; 
  
  height: auto;       
  border-radius: 0;   
  
  z-index: 2;
  transform: scale(1.3);
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.02) forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0.7) translateY(500px);
  }
  100% {
    transform: scale(1.0) translateY(0px);
  }
}

.peeking-character:hover {
  transform: scale(1.4) translateY(-6px);
}

.peeking-character:active {
  transform: scaleX(1.15) scaleY(1.55) translateY(-9px);
  
  transition: transform 0.06s ease-out; 
}

.pfp-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 13;
  pointer-events: none; 
  user-select: none;
}

.hanging-button {
  position: absolute;
  left: 50%;
  bottom: 0; 
  
  transform: translate(-50%, 50%); 
  
  width: 25%;
  min-width: 100px;
  max-width: 250px;
  margin-bottom: 0; 
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;

  transition: transform 0.1s ease-in-out, filter 0.1s ease-in-out;
}

.hanging-button:hover {
  transform: translate(-50%, 50%) scale(1.1);
}

.hanging-button:hover img {
  filter: brightness(1.2); 
}

.about-bottom-title-svg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
  bottom: 35px; 
  
  width: 22%;
  min-width: 90px;
  max-width: 220px;
  
  pointer-events: none; 
  z-index: 9;
}

.about-bottom-title-svg svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.about-bottom-title-svg text {
  font-family: 'CutePixel', sans-serif;
  fill: #F0BB78;                     
  font-size: 3.5rem;
  letter-spacing: 1px;
}



.project-divider {
  display: flex;
  align-items: center;
  text-align: center;
  width: 60%;
  margin: 4rem auto;
  margin-top: 6rem;
  margin-bottom: 0px;
  color: #bfb3a288;
  font-family: 'CutePixel', sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 3rem);
}

.project-divider::before {
  content: "";
  flex: 1;
  border-bottom: 3px dotted #bfb3a288;
  margin-right: 1.5rem;
}

.project-divider::after {
  content: "";
  flex: 1;
  border-bottom: 3px dotted #bfb3a288;
  margin-left: 1.5rem;
}

.hanging-button img {
  width: 50%;
  height: auto;
  display: block;
}

.game-inner .video-wrapper {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/9;
  background-color: Black;
  
  display: grid;
  overflow: hidden; 
}

.game-inner .video-wrapper video,
.mute-button {
  grid-area: 1 / 1;
}

.game-inner .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* pointer-events: none; */
}

.mute-button {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: start;
  margin: 8px;
  z-index: 10;
  
  background: rgba(0, 0, 0, 0.6);
  border: none;
  padding: 8px;           
  border-radius: 6px;
  cursor: pointer;
  pointer-events: auto;   
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.mute-button .mute-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mute-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.game-topper h2 {
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  color: #F0BB78;
  white-space: nowrap;
  
  margin-left: 10%;
  margin-right: 10%;
  translate: 0 105%;
}

.game-topper.climb-topper h2 {
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  color: #F0BB78;
  white-space: nowrap;
  
  margin-left: 6%;
  margin-right: 0px;
}

.game-topper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
}

.topper-image-wrapper {
  position: relative;
  top: -4.5%; 
  width: 50%;
  max-width: 50%;          
  bottom: 0px;
  float: right;
  translate: -33% 16%;
  
  aspect-ratio: 800 / 250;
  
  /* border: 2px solid red; */
}

.game:nth-child(even) .topper-image-wrapper {
  translate: 17% 16%;
}

.topper-image-wrapper > .character-sprite {
  position: absolute;
  bottom: 3%;
  height: auto;
  cursor: pointer;
  z-index: 10;
}

.topper-image-wrapper > .ZG-Char0 {
  left: 15%; 
  width: 32%; 
}

.character-sprite img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-sprite {
  transform-origin: bottom center;
}

.character-sprite .hover-sprite {
  display: none;
}

.character-sprite:hover .normal-sprite {
  display: none;
}

.character-sprite:hover .hover-sprite {
  display: block;
  animation: hoverBounce 0.2s ease-out 1;
}

@keyframes hoverBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scaleX(0.9) scaleY(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.topper-image-wrapper > img {
  position: absolute;
  bottom: 0;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.character-sprite img {
  width: 100%;
  height: auto;
  display: block;
 
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  -webkit-user-select: none;
  user-select: none;
}

.topper-image-wrapper > .ZG-Char0 {
  left: 15%; 
  width: 32%; 
  bottom: 3%;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
		cursor: grab;
}

.topper-image-wrapper > .ZG-Char1 {
  left: 60%; 
  width: 19%; 
  bottom: 3%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Drone-Char {
  left: 40%; 
  width: 19%; 
  bottom: 20%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
	cursor: grab;
}

.topper-image-wrapper > .Tank-Char0 {
  left: 10%; 
  width: 38%; 
  bottom: 15%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Tank-Char1 {
  left: 60%; 
  width: 38%; 
  bottom: 15%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Goblin-Char {
  left: 15%; 
  width: 14%; 
  bottom: 8%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
	cursor: grab;
}

.topper-image-wrapper > .Archer-Char {
  left: 45%; 
  width: 40%; 
  bottom: 8%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .LittleGuy-Char {
  left: 5%; 
  width: 4%; 
  bottom: 3%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Collector-Char {
  left: 44%; 
  width: 8%; 
  bottom: 3%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Miner-Char {
  left: 12%; 
  width: 5%; 
  bottom: 15%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Trebuchet-Char {
  left: 65%; 
  width: 5%; 
  bottom: 3%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .pile {
  left: 20%; 
  width: 24%; 
  bottom: 3%;
   image-rendering: pixelated;
	  -webkit-user-select: none;
  user-select: none;
    will-change: transform;
	cursor: default;
}

.topper-image-wrapper > .Cptn-Char {
  left: 44%; 
  width: 12%; 
  bottom: 16%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Fisher-Char {
  left: 26%; 
  width: 13%; 
  bottom: 15.5%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Chief-Char {
  left: 6%; 
  width: 18%; 
  bottom: 15%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .Paul-Char {
  left: 35%; 
  width: 41%; 
  bottom: 5%;
   transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: bottom center;
}

.topper-image-wrapper > .ZG-Char0:active {
 transform: scaleX(1.3) scaleY(0.8);
}

.topper-image-wrapper > .ZG-Char1:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Drone-Char:active {
 transform: scaleX(1.3) scaleY(0.8);
}

.topper-image-wrapper > .Tank-Char0:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Tank-Char1:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Goblin-Char:active {
 transform: scaleX(1.3) scaleY(0.8);
}

.topper-image-wrapper > .Archer-Char:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .LittleGuy-Char:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Collector-Char:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Miner-Char:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Trebuchet-Char:active {
 animation: grappleGuyBounce 0.1s;
}

.topper-image-wrapper > .Cptn-Char:active {
 transform: scaleX(1.3) scaleY(0.8);
}

.topper-image-wrapper > .Fisher-Char:active {
 transform: scaleX(1.3) scaleY(0.8);
}

.topper-image-wrapper > .Chief-Char:active {
 transform: scaleX(1.3) scaleY(0.8);
}

.topper-image-wrapper > .Paul-Char:active {
 animation: grappleGuyBounce 0.1s;
}

@keyframes grappleGuyBounce {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.game-outer {
  width: 100%;
  margin: 0% 0% 2% 0%;
  border-radius: 12px;
  background-color: #543A14;
  box-sizing: border-box;
}

.game-inner {
  display: grid;
  grid-template-columns: 1fr 55%;
  grid-auto-rows: auto;
  gap: 1rem;
  align-items: start;
  background-color: #3d290c;
  margin: 1% 1%;
  border-radius: 12px;
  padding: 1%;
  box-sizing: border-box;
}

.game-inner img {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 100%;
  max-width: 800px;  
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.game-inner video {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  aspect-ratio: 16/9;
  background-color: Black;
}

.game-inner p {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(0.7rem, 1.3vw, 2rem);
  line-height: 1.02;
}

.game-inner button {
	font-family: 'CutePixel', sans-serif;
	background: none;
	border: none;
	color: #F0BB78;
	font-size: 1.0em;
	text-decoration: underline;
}

.game-inner button:hover {
	color: #FFF0DC;
}

.gif-button img {
  max-width: 100%;
  min-width: 100%;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
  display: block; 
  user-select: none; 
}

.gif-button {
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 0px;
  background-color: Transparent;
}

.gif-button.pressed {
  width: 100%;
  height: 100%;
  padding: 2px;
  margin: 0px;
  background-color: #FFF0DC;
}

.gif-controls {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: .5rem;
  justify-self: end;
  align-items: end;
  align-self: end;
}

.game:nth-child(odd) .game-topper {
  flex-direction: row-reverse; 
  justify-content: flex-start;
  text-align: right;
}

.game:nth-child(odd) .game-topper h2 {
  text-align: right;
  margin-left: 0;      
  padding-left: 0%;
  padding-right: 0;
  translate: 0 105%;
}

.game:nth-child(odd) .game-topper img, .game-topper video {
  margin-left: 0;
  margin-right: auto;
}

.game:nth-child(odd) .game-inner p,
.game:nth-child(odd) .gif-controls {
  grid-column: 2;
}

.game:nth-child(odd) .game-inner img,
.game:nth-child(odd) .game-inner .video-wrapper {
  grid-column: 1;
}

.game:nth-child(odd) .game-inner {
  grid-template-columns: 55% 1fr;
}



.highlight {
  color: #F0BB78; 
}

.message-box {
  position: relative;
  z-index: 1; 
  width: 100%;
  background-color: #1E1D1D;
  margin-left: 0px;
  padding-left: 0px;
  padding-top: 1%;
  margin-top: 5vw;
  padding-bottom: 1%; 
  display: block;

  text-align: center; 
  color: #FFF0DC;  
}

.message-box h2 {
  color: #F0BB78; 
  margin-bottom: 1rem;
  font-weight: normal;
  font-size: clamp(1.5rem, 2vw, 6rem);
}

.message-box img {
	width: 5%;
}

.message-box p {
	margin-top: 5px;
	 font-size: clamp(1.5rem, 1.5vw, 6rem);
}

.overlay {
  box-sizing: border-box;
  position: fixed;
  inset: 0; 
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5%;
  overflow: auto;
  display: none;
  overscroll-behavior: contain;
}


.overlay h2 {
  color: #F0BB78;
  font-size: clamp(1.5rem, 3vw, 8rem);
  margin: 0.0em 0 0;
  text-align: center;
  width: 100%;
  padding-bottom: 20px;
}

.overlay h3 {
  color: #F0BB78;
  font-size: clamp(1.0rem, 2vw, 5rem);
  margin: 0.0em 0 0;
  text-align: left;
  padding-bottom: -100px;
  margin-bottom: 0;
  line-height: 1.0;
}

.overlay p {
	padding-top: 0;
	margin-top: 0;
	color: #FFF0DC;
	line-height: 1.0;
	font-size: 1.5rem;
}

.overlay-outer {
	box-sizing: border-box;
	background-color: #543A14;
	width: 100%;
	height: auto;
	border-radius: 12px;
	padding: 1%;
	overflow-y: auto;
	max-height: 90vh;
}

.overlay-inner {
		box-sizing: border-box;
	border-radius: 12px;
	background-color: #3d290c;
	width: 100%;
	height: auto;
	padding: 1%;
}

.two-columns {
  column-count: 2;      
  column-gap: 2rem;       
  width: 100%;
}

.other-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 2rem; 
  width: 100%;
  padding: 6rem 4rem 0rem 4rem;
   box-sizing: border-box;
}

.other-games-outer {
  box-sizing: border-box;
  background-color: #543A14;
  width: 100%;
  height: 100%;
  border-radius: 12px;
    padding: 5px;
}

.other-games-inner {
  box-sizing: border-box;
  background-color: #3d290c;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  padding: 10px;
  
  display: flex;
  flex-direction: column;
}

.other-games-inner img {
	 box-sizing: border-box;
	  width: 100%;
  height: auto;
  margin-top: -2.0rem;
  margin-bottom: -0.5rem;
}

.other-games-inner button {
	font-family: 'CutePixel', sans-serif;
	background: none;
	border: none;
	color: #F0BB78;
	text-align: center;
	width: auto;
	 font-size: clamp(1rem, 1.5vw, 1.5em);
	text-decoration: underline;
	margin-top: auto;
	padding-top: 0px;
}

.other-games-buttons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin-top: auto;

}

.other-games-inner button:hover {
	color: #FFF0DC;
}

.other-games-inner p {
	line-height: 1.0;
		text-align: center;
	 font-size: clamp(1.0rem, 1.2vw, 3rem);
	 padding-bottom: 0px;
	 margin-bottom: 0px;
}

.game-inner .overlay-link-btn,
.game-inner .overlay-link-btn:visited,
.other-games-inner .overlay-link-btn:visited,
.other-games-inner .overlay-link-btn {
  align-self: flex-end;
  color: #F0BB78;
  font-size: 1.5rem;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  user-select: none;
  margin-top: 0.5rem;
  transition: color 0.1s ease-in-out;
  margin-left: 5%;
  font-size: 1.0em;
}

.other-games-inner .overlay-link-btn:visited,
.other-games-inner .overlay-link-btn {
  font-size: clamp(1rem, 1.5vw, 1.5em);
}

.game-inner .overlay-link-btn:hover, 
.other-games-inner .overlay-link-btn:hover {
  color: #FFF0DC;
  text-decoration: underline;
}

@media (max-width: 768px) {
	
  html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
	
  .game {
    width: 95%; 
    max-width: 100%;
    margin: 0 auto 2rem; 
    overflow: visible;  
  }

  .game-outer {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .game-inner,
  .game:nth-child(odd) .game-inner {
    display: grid; 
    grid-template-columns: 1fr; 
    width: auto; 
    margin: 6px; 
    padding: 1.5rem 1rem; 
    box-sizing: border-box;
  }
  
  .game-inner p,
  .game-inner img,
  .game-inner .video-wrapper,
  .gif-controls,
  .game:nth-child(odd) .game-inner p,
  .game:nth-child(odd) .game-inner img,
  .game:nth-child(odd) .game-inner .video-wrapper,
  .game:nth-child(odd) .gif-controls {
    grid-column: 1 / -1; 
    width: 100%;
    max-width: 100%;
    justify-self: center;
  }

  .game-inner p,
  .game:nth-child(odd) .game-inner p {
    grid-row: 1;
    width: auto; 
    justify-self: stretch;
    margin-top: -15px;
  }

  .game-inner img,
  .game-inner .video-wrapper,
  .game:nth-child(odd) .game-inner img,
  .game:nth-child(odd) .game-inner .video-wrapper {
    grid-row: 2;  
    height: auto;
  }

  .gif-controls,
  .game:nth-child(odd) .gif-controls {
    grid-row: 3;
    margin-top: 1rem;
  }
  

.game .game-topper,
  .game:nth-child(odd) .game-topper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    gap: 4%;
  }

  .game:nth-child(odd) .game-topper {
    flex-direction: row-reverse;
  }
  
  .game .topper-image-wrapper,
  .game:nth-child(even) .topper-image-wrapper {
    float: none;
    width: 45%;
    max-width: 45%;
    top: 0;
    
    translate: 0% 16%; 
  }

.game .game-topper h2,
.game:nth-child(odd) .game-topper h2 {
  font-size: clamp(1.8rem, 5.5vw, 2.5rem); 
  
  white-space: normal; 
  word-wrap: break-word; 
  
  width: 50%;
  max-width: 50%;
  margin: 0;
  translate: 0 23%; 
  line-height: 0.85;
  z-index: 3;
}

  .game .game-topper h2 { margin-left: 2%; text-align: left; }
  .game:nth-child(odd) .game-topper h2 { margin-right: 2%; text-align: right; }

  .game .game-topper img,
  .game:nth-child(odd) .game-topper img {
    width: 95%;
    max-width: 95%; 
    height: auto;
    float: none;
    margin: 0;
    z-index: 2;
    translate: 0 0 !important;
    transform: scale(1.3) translateY(-10%, 5%); 
    transform-origin: bottom right; 
  }
  
  .game:nth-child(odd) .game-topper img {
    width: 95%;
    max-width: 95%; 
    height: auto;
    float: none;
    margin: 0;
    z-index: 2;
    translate: 0 0 !important;
    transform: scale(1.3) translateY(10%, 5%); 
    transform-origin: bottom right; 
  }
  
  .game:nth-child(odd) .game-topper img {
    transform-origin: bottom left;
  }
  
  .topper-image-wrapper > .pile {
    width: 19% !important;
    left: 25% !important;
    bottom: 3% !important;
  }
  
  .other-games {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 1rem;                             
    padding: 2rem 1rem 0rem 1rem;          
    width: 100%;
    box-sizing: border-box;
  }

  .other-games-inner img {
    margin-top: 0;                         
    margin-bottom: 0;
  }

  .about-me {
    width: 90%;
    margin: 3rem auto 2rem auto;
    box-sizing: border-box; 
  }

  .about-me .about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 3rem 1rem;
    box-sizing: border-box;
    gap: 1rem;
  }

  .about-me .about-inner .profile-container {
    margin: 0 auto;
    align-self: center;
    width: 200px;
    height: 200px;
    max-width: 200px;
    transform: scale(0.6); 
    transform-origin: center top;
    margin-bottom: -80px;
  }

  .about-me .about-inner h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin: 0;
    word-wrap: break-word;
  }

  .about-me .about-inner p {
    text-align: center;
    max-width: 100%;
    margin: 0;
  }

  .project-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 4rem auto 1rem auto;
    color: #bfb3a288;
    font-size: clamp(0.9rem, 1.2vw, 3rem);
    white-space: nowrap;
    overflow: hidden;
  }

  .message-box {
    margin-top: 10vw;
  }
  
  .two-columns {
    column-count: 1;
  }
  
  .two-columns p {
    font-size: clamp(1.0rem, 3vw, 2rem);
  }
  
  .about-bottom-title-svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 22%;
    min-width: 90px;
    max-width: 220px;
    pointer-events: none;
    z-index: 9;
  }
  
  .topper-image-wrapper > .character-sprite {
   -webkit-tap-highlight-color: transparent;
  }
}