body {
  background: #0e0e14;
  color: #fff;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.controls {
  margin: 12px;
}

.grid {
	margin-top: -12px;
  display: grid;
  grid-template-columns: repeat(3, 175px);
  grid-template-rows: repeat(2, 112px);
  gap: 12px;
  justify-content: center;
}

.slot {
  background: #1a1a25;
  border-radius: 12px;
  position: relative;
}

.gadget img {
  width: 100%;
  height: 100%;
  object-position: 50% 0%;
  object-fit: none;
 
  

}

.slot-cost {
  position: absolute;
  top: 90px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
#gadgetList {
  list-style: none;
  padding: 0;
}
.machine-name {
  position: relative;
  bottom: 2px;
  left: 0px;

  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 6px;

  font-size: 16px;
  
  color: white;

  pointer-events: none;
}
.machine-row {
  
   position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  vertical-align: middle;
  margin-top: -12px;
  
}

.machine-part img,
.character img {
  width: 140px;
  display: inline-block;
  align-items: center;
  vertical-align: middle;
    height: auto;

  justify-content: center;
}

.machine-part {
		 align-items: center;
  justify-content: center;
  width: 180px;
  height: auto;
  display: inline-block;
	position: flex;
  bottom: 1px;
  vertical-align: bottom;
   background: #1a1a25;
  padding: 0px;
  border-radius: 10px;
  border: 3px solid transparent;
  color: #fff;
}

/* Game-accurate style colors */
.machine-speed {
  border-color: #0033FF; /* Speed blue */
}

.machine-power {
  border-color: #FF0000; /* Power red */
}

.machine-acceleration {
  border-color: #FDFF00; /* Acceleration yellow*/
}

.machine-handling {
  border-color: #FF91FB /* Handling pink*/
}

.machine-boost {
  border-color: #00FF0D  ; /* Boost green */
}
.character {
   margin-top: -12px;
}

.character-frame {
  position: relative;
  display: inline-block;
}

.character-frame img {
  width: 180px;
  height: auto;
  display: block;
}

.character-name {
  position: absolute;
  bottom: 6px;
  left: 6px;

  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 6px;

  font-size: 14px;
  font-weight: bold;
  color: white;

  pointer-events: none;
}



.stages {
  margin-top: -12px;
}

.stages-frame {
  position: relative;
  display: inline-block;
}

.stages-frame img {
	 align-items: center;
  justify-content: center;
  width: 225px;
  height: auto;
  display: inline-block;
}

.stages-name {
  position: absolute;
  bottom: 6px;
  left: 6px;

  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 6px;

  font-size: 14px;
  font-weight: bold;
  color: white;

  pointer-events: none;
}
.selection-row {
  display: flex;
  gap: 24px;              /* space between character & stage */
  display: flex;
  align-items: center;
  justify-content: center;
}

.last-updated {
  position: fixed;        /* anchors to the window */
  bottom: 12px;           /* distance from bottom */
  left: 12px;             /* distance from left */
  font-size: 12px;
  color: #aaa;
  z-index: 1000;          /* stays above content */

  background: rgba(0, 0, 0, 0.6); /* optional readability */
  padding: 6px 10px;
  border-radius: 6px;
}

.last-updated a {
  color: #7fc7ff;
  text-decoration: none;
}

.last-updated a:hover {
  text-decoration: underline;
}




}