.mod-maze .maze-wrap {
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  grid-template-rows: 26px 1fr 26px;
  grid-template-areas:
    '. up .'
    'left grid right'
    '. down .';
  gap: 4px;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
}

.mod-maze .maze-grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 3px;
  padding: 6px;
  background: #0b0b0b;
  border: 2px solid #222;
  border-radius: 3px;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.mod-maze .maze-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-maze .maze-dot {
  width: 30%;
  height: 30%;
  background: #3b3b3b;
  border-radius: 1px;
}

.mod-maze .maze-cell.has-ring::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 2px solid var(--c-green, #2e9d43);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(46, 157, 67, 0.6);
}

.mod-maze .maze-cell.is-player .maze-dot {
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: var(--c-white, #f2f2f2);
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7);
}

.mod-maze .maze-cell.is-goal::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--c-red, #d32f2f);
  filter: drop-shadow(0 0 3px rgba(211, 47, 47, 0.7));
}

.mod-maze .maze-cell.is-goal .maze-dot {
  display: none;
}

.mod-maze .maze-cell.is-goal.is-player .maze-dot {
  display: block;
}

.mod-maze .maze-arrow {
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: #ddd;
  background: #333;
  border: 2px solid #111;
  border-radius: 3px;
  box-shadow: 0 2px 0 #111;
}

.mod-maze .maze-arrow:hover {
  filter: brightness(1.25);
}

.mod-maze .maze-arrow:active {
  transform: translateY(1px);
  box-shadow: none;
}

.mod-maze .maze-up { grid-area: up; justify-self: center; width: 46px; }
.mod-maze .maze-down { grid-area: down; justify-self: center; width: 46px; }
.mod-maze .maze-left { grid-area: left; align-self: center; height: 46px; }
.mod-maze .maze-right { grid-area: right; align-self: center; height: 46px; }
