.machine-claw-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1em;
  border-radius: 1.2em;
  max-width: 600px;
  margin: 2em auto;
  padding: 1.5em;
  box-sizing: border-box;
  position: relative;
}

.machine-led-grid {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 25 / 7;
  background: #000;
  border-radius: 0.8em;
  padding: 0.5em;
  box-shadow: inset 0 0 10px #111, 0 0 10px #0f0;
  box-sizing: border-box;
}

.machine-led-grid div {
  background: #444;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  transition: background 0.2s ease;
}

.machine-led-grid .machine-active {
  background: #0f0;
  box-shadow: 0 0 6px #0f0;
}

.machine-active {
  background: #0f0;
  box-shadow: 0 0 6px #0f0;
  animation: glowPulse 1.2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 6px #0f0; }
  50% { box-shadow: 0 0 9px #0f0; }
}

.machine-controls {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.machine-arrow-row {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.machine-arrow {
  width: 20vw;
  max-width: 70px;
  height: 20vw;
  max-height: 70px;
  border-radius: 0.8em;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.machine-arrow:disabled {
  background: #ccc;
  border-color: #999;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}


.machine-arrow:active {
  transform: scale(0.95);
  box-shadow: inset 0 0 5px #0f0;
  border-color: #0f0;
}

.machine-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.machine-up::before {
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-bottom: 0.8em solid var(--colour-ring, white);
}

.machine-down::before {
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-top: 0.8em solid var(--colour-ring, white);
}

.machine-left::before {
  border-top: 0.5em solid transparent;
  border-bottom: 0.5em solid transparent;
  border-right: 0.8em solid var(--colour-ring, white);
}

.machine-right::before {
  border-top: 0.5em solid transparent;
  border-bottom: 0.5em solid transparent;
  border-left: 0.8em solid var(--colour-ring, white);
}

.machine-grab-form {
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-arcade-button {
  width: 22vw;
  max-width: 90px;
  height: 22vw;
  max-height: 90px;
  border-radius: 50%;
  background: #ff5555;
  border: 4px solid var(--colour-ring, #fff);
  box-shadow: 0 3px 0 #a00000, inset 0 0 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  overflow: hidden;
}


.machine-arcade-button:hover {
  background: #ff7777;
  box-shadow: 0 3px 0 #a00000, 0 0 0 2px var(--colour-ring, #fff) inset;
}

.machine-arcade-button:active {
  transform: scale(0.92);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5), inset 0 0 15px #f00;
}

.machine-control-panel {
  display: flex;
  gap: 2em;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.machine-arrow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.machine-highlight {
  box-shadow: 0 0 10px #0f0;
  border-color: #0f0 !important;
}

.machine-arcade-button {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ff5555;
  border: 4px solid var(--colour-ring, #fff);
  box-shadow: 0 3px 0 #a00000, inset 0 0 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  overflow: hidden;
}

.machine-arcade-button::before {
  content: "GO";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: sans-serif;
  font-weight: bold;
  font-size: 2em;
  color: var(--colour-text-on-accent, #FFF);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.machine-arcade-button:hover::before {
  opacity: 1;
}

.machine-enchanted {
  background: #264fb2;
  border: 6px solid #3c7dd9;
  box-shadow: 0 0 0 4px var(--colour-ring, #fff) inset, 0 0 12px #1a2a5c;
}

.machine-enchanted .machine-arrow {
  background: #3c7dd9;
  border: 3px solid var(--colour-ring, #ffffff);
  box-shadow: 0 3px 0 #1a2a5c;
}

.machine-enchanted .machine-arrow:hover {
  background: #5fa1f5;
  box-shadow: 0 0 0 2px var(--colour-ring, #fff) inset;
}

.machine-plushie {
  background: #e95090; 
  border: 6px solid #c41c6e; 
  box-shadow: 0 0 0 4px var(--colour-ring, #fff) inset, 0 0 12px #b41a68;
}

.machine-plushie .machine-arrow {
  background: #ff88b0;
  border: 3px solid var(--colour-ring, #ffffff);
  box-shadow: 0 3px 0 #b41a68;
}

.machine-plushie .machine-arrow:hover {
  background: #ffc1d9;
  box-shadow: 0 0 0 2px var(--colour-ring, #fff) inset;
}




@media (max-width: 600px) {
  .machine-claw-container {
    flex-direction: column;
    align-items: center;
  }

  .machine-led-grid,
  .machine-controls {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
	
.machine-led-grid {
	width: 90vw;
	max-width: 100%;
	gap: 1vw;
	padding: 2vw;
}
.machine-mobile-stripe {
  	width: 100%;
}
.machine-claw-container {
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	margin: 0;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	max-width: 100% !important;
	width: 100% !important;
	background: none !important;
}

.machine-plushie,
.machine-enchanted {
	all: unset;
	display: contents;
}

.machine-led-grid,
.machine-controls {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0.5em 0;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.machine-control-panel {
	flex-wrap: wrap;
	justify-content: center;
	gap: 1em;
	padding-bottom: 1em;
}  
 }
